]> git.baikalelectronics.ru Git - 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)
commit444cfcee8b2aa530d3122438b82906b6128cbc43
treedec8b5516abb1d7f78a5d981b8be851efce19c0e
parent8b806024242c7ea5663886c7d1b5240e32063326
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