]> git.baikalelectronics.ru Git - kernel.git/commit
net: dsa: sja1105: be stateless when installing FDB entries
authorVladimir Oltean <vladimir.oltean@nxp.com>
Wed, 28 Jul 2021 18:53:15 +0000 (21:53 +0300)
committerDavid S. Miller <davem@davemloft.net>
Wed, 28 Jul 2021 19:28:01 +0000 (20:28 +0100)
commit40b12861e12443685ad0e39f44738e661868d3c9
treec2321dca7cfb5b3d430646607aad9364b8630fda
parent24659caeeb8331e888a5f31b4a55517a51f5ce63
net: dsa: sja1105: be stateless when installing FDB entries

Currently there are issues when adding a bridge FDB entry as VLAN-aware
and deleting it as VLAN-unaware, or vice versa.

However this is an unneeded complication, since the bridge always
installs its default FDB entries in VLAN 0 to match on VLAN-unaware
ports, and in the default_pvid (VLAN 1) to match on VLAN-aware ports.
So instead of trying to outsmart the bridge, just install all entries it
gives us, and they will start matching packets when the vlan_filtering
mode changes.

Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/sja1105/sja1105_dynamic_config.c
drivers/net/dsa/sja1105/sja1105_main.c