Skip to content

mlxsw: Offload MC flood for unregister MC

Jiri Pirko netdev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest10 patches 4 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/10switchdev: bridge: Offload multicast disabledinclude/net/switchdev.h net/bridge/br_multicast.c+18 -01 reply
2/10bridge: mcast: Merge the mc router ports deletions to one functionnet/bridge/br_multicast.c+9 -151 reply
3/10switchdev: bridge: Offload mc router portsinclude/net/switchdev.h net/bridge/br_multicast.c+17 -01 reply
4/10mlxsw: spectrum: Break flood set func to be per tabledrivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c+34 -200 replies
5/10mlxsw: spectrum: Make port flood update more genericdrivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c+13 -130 replies
6/10mlxsw: spectrum: Change max vfiddrivers/net/ethernet/mellanox/mlxsw/spectrum.h+1 -10 replies
7/10mlxsw: spectrum: Separate bc and mc floodsdrivers/net/ethernet/mellanox/mlxsw/spectrum.c drivers/net/ethernet/mellanox/mlxsw/spectrum.h drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c+35 -130 replies
8/10mlxsw: spectrum: Add an option to flood mc by mc_router_portdrivers/net/ethernet/mellanox/mlxsw/spectrum.c drivers/net/ethernet/mellanox/mlxsw/spectrum.h drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c+41 -30 replies
9/10mlxsw: spectrum: Extend port_orig_get for bridge devicesdrivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c+13 -00 replies
10/10mlxsw: spectrum: Update mc_disabled flag by switchdev attrdrivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c+28 -00 replies

Reviews trailers per patch

3 of 10 patches have a Reviewed-by or Acked-by.

PatchIvan Vecera
1/10A-b
2/10A-b
3/10A-b
4/10
5/10
6/10
7/10
8/10
9/10
10/10

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [patch net-next 00/10] mlxsw: Offload MC flood for unregister MC

From: Jiri Pirko <[email protected]>

Nogah says:

When multicast is enabled, the Linux bridge floods unregistered multicast packets only to ports connected to a multicast router. Devices capable of offloading the Linux bridge need to be made aware of such ports, for proper flooding behavior.
On the other hand, when multicast is disabled, such packets should be flooded to all ports. This patchset aims to fix that, by offloading the multicast state and the list of multicast router ports.

The first 3 patches adds switchdev attributes to offload this data. The rest of the patchset add implementation for handling this data in the mlxsw driver.

The effects this data has on the MDB (namely, when the multicast is disabled the MDB should be considered as invalid, and when it is enabled, a packet that is flooded by it should also be flooded to the multicast routers ports) is subject of future work.

Testing of this patchset included:
Sending 3 mc packets streams, LL, register and unregistered, and checking that they reached only to the ports that should have received them. The configs were:
mc disabled, mc without mc router ports and mc with fixed router port. It was checked for vlan aware bridge, vlan unaware bridge and vlan unaware bridge with another vlan unaware bridge on the same machine

Nogah Frankel (10):
switchdev: bridge: Offload multicast disabled
bridge: mcast: Merge the mc router ports deletions to one function
switchdev: bridge: Offload mc router ports
mlxsw: spectrum: Break flood set func to be per table
mlxsw: spectrum: Make port flood update more generic
mlxsw: spectrum: Change max vfid
mlxsw: spectrum: Separate bc and mc floods
mlxsw: spectrum: Add an option to flood mc by mc_router_port
mlxsw: spectrum: Extend port_orig_get for bridge devices
mlxsw: spectrum: Update mc_disabled flag by switchdev attr

 drivers/net/ethernet/mellanox/mlxsw/spectrum.c     |  29 +++-
 drivers/net/ethernet/mellanox/mlxsw/spectrum.h     |  10 +-
 .../ethernet/mellanox/mlxsw/spectrum_switchdev.c   | 154 +++++++++++++++++----
 include/net/switchdev.h                            |   4 +
 net/bridge/br_multicast.c                          |  55 ++++++--
 5 files changed, 198 insertions(+), 54 deletions(-)
Signature · 1 line
2.7.4