summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIdo Schimmel2016-08-24 12:00:28 +0200
committerDavid S. Miller2016-08-24 18:41:12 +0200
commit81f77bc00689ea602e8f19ef5b6dc7b1e238187b (patch)
tree29270397bf5186ff401e4c57db0935a8352a77ac
parentmlxsw: spectrum: Offload learning to the switch ASIC (diff)
downloadkernel-qcow2-linux-81f77bc00689ea602e8f19ef5b6dc7b1e238187b.tar.gz
kernel-qcow2-linux-81f77bc00689ea602e8f19ef5b6dc7b1e238187b.tar.xz
kernel-qcow2-linux-81f77bc00689ea602e8f19ef5b6dc7b1e238187b.zip
mlxsw: spectrum: Remove unnecessary check in FDB processing
We now offload the learning configuration to the device and don't rely on the driver to decide whether to learn the FDB record, so remove the check. 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>
-rw-r--r--drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c b/drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c
index e0a72323817f..0c3fbbc6b537 100644
--- a/drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c
+++ b/drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c
@@ -1430,8 +1430,6 @@ static void mlxsw_sp_fdb_notify_mac_process(struct mlxsw_sp *mlxsw_sp,
vid = fid;
}
- adding = adding && mlxsw_sp_port->learning;
-
do_fdb_op:
err = mlxsw_sp_port_fdb_uc_op(mlxsw_sp, local_port, mac, fid,
adding, true);
@@ -1493,8 +1491,6 @@ static void mlxsw_sp_fdb_notify_mac_lag_process(struct mlxsw_sp *mlxsw_sp,
vid = fid;
}
- adding = adding && mlxsw_sp_port->learning;
-
do_fdb_op:
err = mlxsw_sp_port_fdb_uc_lag_op(mlxsw_sp, lag_id, mac, fid, lag_vid,
adding, true);