]> git.karo-electronics.de Git - linux-beck.git/commit
mlxsw: reg: Add the Switch Filtering DB Flush register
authorIdo Schimmel <idosch@mellanox.com>
Wed, 27 Jan 2016 14:20:17 +0000 (15:20 +0100)
committerDavid S. Miller <davem@davemloft.net>
Thu, 28 Jan 2016 23:55:30 +0000 (15:55 -0800)
commit419332713581f0cbec6414f5e779afb79ddee3dd
treec37dfa1eabb9c991a31abc4e8785ac7d032ec70b
parent4dc236c31733f5d2a3872c88cf12f607d7d36905
mlxsw: reg: Add the Switch Filtering DB Flush register

When removing a net device from a bridge we should flush the FDB entries
associated with this net device. Up until now, we relied upon bridge
code to do that for us, but it is possible for user to prevent hardware
from syncing with the software bridge (learning_sync=0), so we need to
flush overselves.

Add the Switch Filtering DB Flush (SFDF) register that is used to flush
FDB entries according to different parameters (per-port, per-FID etc).

Fixes: 56ade8fe3fe1 ("mlxsw: spectrum: Add initial support for Spectrum ASIC")
Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxsw/reg.h