summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPetr Machata2018-10-29 15:26:14 +0100
committerDavid S. Miller2018-10-30 04:48:00 +0100
commitad0b9d94182be8356978d220c82f9837cffeb7a9 (patch)
tree012a49b6ebace6791c09ac093628a1d06da70a9e
parenthinic: Fix l4_type parameter in hinic_task_set_tunnel_l4 (diff)
downloadkernel-qcow2-linux-ad0b9d94182be8356978d220c82f9837cffeb7a9.tar.gz
kernel-qcow2-linux-ad0b9d94182be8356978d220c82f9837cffeb7a9.tar.xz
kernel-qcow2-linux-ad0b9d94182be8356978d220c82f9837cffeb7a9.zip
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: 816a3bed9549 ("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>
-rw-r--r--drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c b/drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c
index bc60d7a8b49d..739a51f0a366 100644
--- a/drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c
+++ b/drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c
@@ -2661,8 +2661,6 @@ static void mlxsw_sp_switchdev_bridge_fdb_event_work(struct work_struct *work)
break;
case SWITCHDEV_FDB_DEL_TO_DEVICE:
fdb_info = &switchdev_work->fdb_info;
- if (!fdb_info->added_by_user)
- break;
mlxsw_sp_port_fdb_set(mlxsw_sp_port, fdb_info, false);
break;
case SWITCHDEV_FDB_ADD_TO_BRIDGE: /* fall through */