Skip to content

Commit ad0b9d9

Browse files
pmachatadavem330
authored andcommitted
mlxsw: spectrum_switchdev: Don't ignore deletions of learned MACs
Demands to remove FDB entries should be honored even if the FDB entry in question was originally learned, and not added by the user. Therefore ignore the added_by_user datum for SWITCHDEV_FDB_DEL_TO_DEVICE. Fixes: 816a3be ("switchdev: Add fdb.added_by_user to switchdev notifications") Signed-off-by: Petr Machata <petrm@mellanox.com> Suggested-by: Ido Schimmel <idosch@mellanox.com> Signed-off-by: Ido Schimmel <idosch@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 6e29464 commit ad0b9d9

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2661,8 +2661,6 @@ static void mlxsw_sp_switchdev_bridge_fdb_event_work(struct work_struct *work)
26612661
break;
26622662
case SWITCHDEV_FDB_DEL_TO_DEVICE:
26632663
fdb_info = &switchdev_work->fdb_info;
2664-
if (!fdb_info->added_by_user)
2665-
break;
26662664
mlxsw_sp_port_fdb_set(mlxsw_sp_port, fdb_info, false);
26672665
break;
26682666
case SWITCHDEV_FDB_ADD_TO_BRIDGE: /* fall through */

0 commit comments

Comments
 (0)