]> 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)
commit6ef307034221ce4770a9ddff6b04afddb71c290c
treedec8b5516abb1d7f78a5d981b8be851efce19c0e
parentb74919cb6f63e0788bc579b5e5fcee8bc7c1277d
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