]> git.baikalelectronics.ru Git - kernel.git/commit
net: dsa: felix: add port fast age support
authorVladimir Oltean <vladimir.oltean@nxp.com>
Fri, 7 Jan 2022 14:42:29 +0000 (16:42 +0200)
committerJakub Kicinski <kuba@kernel.org>
Sat, 8 Jan 2022 02:58:25 +0000 (18:58 -0800)
commit322f4e408910370c05855ee0b167ff154d2b2253
tree1be08c03790fe4bf965bfc133aaaffe380b9d7b8
parent4ab01698c86c296cb0c7bb48a94f1821c2e1a8a2
net: dsa: felix: add port fast age support

Add support for flushing the MAC table on a given port in the ocelot
switch library, and use this functionality in the felix DSA driver.

This operation is needed when a port leaves a bridge to become
standalone, and when the learning is disabled, and when the STP state
changes to a state where no FDB entry should be present.

Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Link: https://lore.kernel.org/r/20220107144229.244584-1-vladimir.oltean@nxp.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/dsa/ocelot/felix.c
drivers/net/ethernet/mscc/ocelot.c
include/soc/mscc/ocelot.h