]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
net: dsa: sja1105: add FDB fast ageing support
authorVladimir Oltean <vladimir.oltean@nxp.com>
Sun, 8 Aug 2021 14:35:27 +0000 (17:35 +0300)
committerDavid S. Miller <davem@davemloft.net>
Sun, 8 Aug 2021 19:56:52 +0000 (20:56 +0100)
commit5126ec72a094bd3a721941323c48cc80c60139d9
treedec8b5516abb1d7f78a5d981b8be851efce19c0e
parent5313a37b881e57767bc37185bef2873862be8d47
net: dsa: sja1105: add FDB fast ageing support

Delete the dynamically learned FDB entries when the STP state changes
and when address learning is disabled.

On sja1105 there is no shorthand SPI command for this, so we need to
walk through the entire FDB to delete.

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