Skip to content

Commit 050fc01

Browse files
idoschdavem330
authored andcommitted
mlxsw: spectrum_nve: Remove easily triggerable warnings
It is possible to trigger a warning in mlxsw in case a flood entry which mlxsw is not aware of is deleted from the VxLAN device. This is because mlxsw expects to find a singly linked list where the flood entry is present in. Fix by removing these warnings for now. Will re-add them in the next release after we teach mlxsw to ask for a dump of FDB entries from the VxLAN device, once it is enslaved to a bridge mlxsw cares about. Fixes: 6e6030b ("mlxsw: spectrum_nve: Implement common NVE core") Signed-off-by: Ido Schimmel <[email protected]> Reviewed-by: Petr Machata <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent ebaf39e commit 050fc01

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -560,7 +560,7 @@ static void mlxsw_sp_nve_mc_list_ip_del(struct mlxsw_sp *mlxsw_sp,
560560

561561
mc_record = mlxsw_sp_nve_mc_record_find(mc_list, proto, addr,
562562
&mc_entry);
563-
if (WARN_ON(!mc_record))
563+
if (!mc_record)
564564
return;
565565

566566
mlxsw_sp_nve_mc_record_entry_del(mc_record, mc_entry);
@@ -647,7 +647,7 @@ void mlxsw_sp_nve_flood_ip_del(struct mlxsw_sp *mlxsw_sp,
647647

648648
key.fid_index = mlxsw_sp_fid_index(fid);
649649
mc_list = mlxsw_sp_nve_mc_list_find(mlxsw_sp, &key);
650-
if (WARN_ON(!mc_list))
650+
if (!mc_list)
651651
return;
652652

653653
mlxsw_sp_nve_fid_flood_index_clear(fid, mc_list);

0 commit comments

Comments
 (0)