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>
This commit is contained in:
parent
981f084b36
commit
8b547a6026
|
@ -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))
|
||||
|
|
Loading…
Reference in New Issue