Message ID | 20210224114350.2791260-18-olteanv@gmail.com (mailing list archive) |
---|---|
State | RFC |
Delegated to: | Netdev Maintainers |
Headers | show |
Series | RX filtering in DSA | expand |
Context | Check | Description |
---|---|---|
netdev/cover_letter | success | Link |
netdev/fixes_present | success | Link |
netdev/patch_count | fail | Series longer than 15 patches |
netdev/tree_selection | success | Clearly marked for net-next |
netdev/subject_prefix | success | Link |
netdev/cc_maintainers | warning | 3 maintainers not CCed: davem@davemloft.net kuba@kernel.org bridge@lists.linux-foundation.org |
netdev/source_inline | success | Was 0 now: 0 |
netdev/verify_signedoff | success | Link |
netdev/module_param | success | Was 0 now: 0 |
netdev/build_32bit | success | Errors and warnings before: 0 this patch: 0 |
netdev/kdoc | success | Errors and warnings before: 0 this patch: 0 |
netdev/verify_fixes | success | Link |
netdev/checkpatch | success | total: 0 errors, 0 warnings, 0 checks, 15 lines checked |
netdev/build_allmodconfig_warn | success | Errors and warnings before: 0 this patch: 0 |
netdev/header_inline | success | Link |
netdev/stable | success | Stable not CCed |
diff --git a/net/bridge/br_if.c b/net/bridge/br_if.c index 680fc3bed549..fc32066bbfdc 100644 --- a/net/bridge/br_if.c +++ b/net/bridge/br_if.c @@ -111,9 +111,13 @@ static void br_port_clear_promisc(struct net_bridge_port *p) /* Check if the port is already non-promisc or if it doesn't * support UNICAST filtering. Without unicast filtering support * we'll end up re-enabling promisc mode anyway, so just check for - * it here. + * it here. Also, a switchdev offloading this port needs to be + * promiscuous by definition, so don't even attempt to get it out of + * promiscuous mode or sync unicast FDB entries to it, since that is + * pointless and not necessary. */ - if (!br_promisc_port(p) || !(p->dev->priv_flags & IFF_UNICAST_FLT)) + if (!br_promisc_port(p) || !(p->dev->priv_flags & IFF_UNICAST_FLT) || + p->offloaded) return; /* Since we'll be clearing the promisc mode, program the port