forked from torvalds/linux
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
net: dsa: monitor changes to bridge promiscuity
In preparation of changing the bridge such that it stops managing the IFF_PROMISC flag on offloaded bridge ports, we need to ensure that DSA preserves behavior in the circumstances that matter. The bridge software data path implementation (br_handle_frame_finish) passes a unicast frame up if a BR_FDB_LOCAL entry exists, or if the MAC DA is unknown, if local_rcv is true. In turn, local_rcv is true when the bridge device itself is promiscuous. The analogous behavior in the offloaded plane is to enable flooding of packets with unknown destination towards the CPU when the bridge device itself is promiscuous. This change achieves that by monitoring IFF_PROMISC changes on bridge devices, and calling dsa_bridge_host_flood_change -> dsa_port_manage_cpu_flood on such changes. Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
- Loading branch information
1 parent
f60f0d2
commit 0c56b50
Showing
4 changed files
with
45 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters