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)
commit5cad43a52ee3caf451cd645baa4beb53a1733dae
tree1be08c03790fe4bf965bfc133aaaffe380b9d7b8
parenta14e6b69f393d651913edcbe4ec0dec27b8b4b40
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