]> git.baikalelectronics.ru Git - kernel.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)
commita25660182a1f70f51723df5e700c9c489bc18fcf
treec37dfa1eabb9c991a31abc4e8785ac7d032ec70b
parentc174c9bde7cbaeadb2109bcab592aedabc783a23
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: a3f159160767 ("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