diff options
author | Ido Schimmel <idosch@mellanox.com> | 2018-11-21 08:02:48 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-11-21 17:10:31 -0800 |
commit | 8b547a60262121b2b471a8f2fa0e33a50c6c1ecd (patch) | |
tree | 30caff6af5ef984e1d02ba6e1dfea56c6a8c4fe6 /drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c | |
parent | 981f084b36754b4e5179e8a3fbba554ba0183f0a (diff) | |
download | linux-stable-8b547a60262121b2b471a8f2fa0e33a50c6c1ecd.tar.gz linux-stable-8b547a60262121b2b471a8f2fa0e33a50c6c1ecd.tar.bz2 linux-stable-8b547a60262121b2b471a8f2fa0e33a50c6c1ecd.zip |
mlxsw: spectrum_switchdev: Allow deletion of learned FDB entries
Allow users to delete learned FDB entries from the bridge's FDB before
enabling VxLAN learning.
Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Reviewed-by: Petr Machata <petrm@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c')
-rw-r--r-- | drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c b/drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c index d3d1c1d00d98..b32a5ee57fb9 100644 --- a/drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c +++ b/drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c @@ -2770,7 +2770,8 @@ mlxsw_sp_switchdev_bridge_nve_fdb_event(struct mlxsw_sp_switchdev_event_work * switchdev_work->event != SWITCHDEV_FDB_DEL_TO_DEVICE) return; - if (!switchdev_work->fdb_info.added_by_user) + if (switchdev_work->event == SWITCHDEV_FDB_ADD_TO_DEVICE && + !switchdev_work->fdb_info.added_by_user) return; if (!netif_running(dev)) |