]> git.baikalelectronics.ru Git - kernel.git/commit
net: dsa: mv88e6xxx: Offload bridge broadcast flooding flag
authorTobias Waldekranz <tobias@waldekranz.com>
Thu, 18 Mar 2021 19:25:40 +0000 (20:25 +0100)
committerDavid S. Miller <davem@davemloft.net>
Thu, 18 Mar 2021 23:24:06 +0000 (16:24 -0700)
commit06877be67e42375c44ce3d21ab0242cd4dc3dc6e
treee0e8d1fdd9057a55b413cb637f53e6a2f1b6d1eb
parent95a067e9559f51c4a3f7c88dff042f3ad53be13b
net: dsa: mv88e6xxx: Offload bridge broadcast flooding flag

These switches have two modes of classifying broadcast:

1. Broadcast is multicast.
2. Broadcast is its own unique thing that is always flooded
   everywhere.

This driver uses the first option, making sure to load the broadcast
address into all active databases. Because of this, we can support
per-port broadcast flooding by (1) making sure to only set the subset
of ports that have it enabled whenever joining a new bridge or VLAN,
and (2) by updating all active databases whenever the setting is
changed on a port.

Signed-off-by: Tobias Waldekranz <tobias@waldekranz.com>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/mv88e6xxx/chip.c