Skip to content

Commit 0166277

Browse files
Nogah Frankeldavem330
authored andcommitted
mlxsw: spectrum_switchdev: Remove mrouter flood in mdb flush
In mdb flush the port is being removed from all the mids it is registered to. But if the port is mrouter, all the mids floods to it. This patch remove mrouter ports from mids it is not registered to in the mdb flush. Signed-off-by: Nogah Frankel <[email protected]> Signed-off-by: Jiri Pirko <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 3ddda11 commit 0166277

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1673,6 +1673,9 @@ mlxsw_sp_bridge_port_mdb_flush(struct mlxsw_sp_port *mlxsw_sp_port,
16731673
if (test_bit(mlxsw_sp_port->local_port, mid->ports_in_mid)) {
16741674
__mlxsw_sp_port_mdb_del(mlxsw_sp_port, bridge_port,
16751675
mid);
1676+
} else if (bridge_device->multicast_enabled &&
1677+
bridge_port->mrouter) {
1678+
mlxsw_sp_port_smid_set(mlxsw_sp_port, mid->mid, false);
16761679
}
16771680
}
16781681
}

0 commit comments

Comments
 (0)