Skip to content

mlxsw: Offload bridge device mrouter

Jiri Pirko netdev 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest5 patches 4 repliesIn review
  2. v16 patches 10 repliesSuperseded

Changes in v2 from the cover letter

- patch1:
- Don't add the MDB_RTR_TYPE_TEMP state and use the timer_pending to distinguish between learning-on and learning-off states

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5net: bridge: Notify on bridge device mrouter state changesinclude/net/switchdev.h net/bridge/br_multicast.c+36 -32 replies
2/5net: bridge: Export bridge multicast router stateinclude/linux/if_bridge.h net/bridge/br_multicast.c+17 -01 reply
3/5mlxsw: spectrum: router: Export the mlxsw_sp_router_port functiondrivers/net/ethernet/mellanox/mlxsw/spectrum_router.c drivers/net/ethernet/mellanox/mlxsw/spectrum_router.h+2 -10 replies
4/5mlxsw: spectrum_switchdev: Add support for router port in SMID entriesdrivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c+11 -20 replies
5/5mlxsw: spectrum_switchdev: Support bridge mrouter notificationsdrivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c+63 -20 replies

Reviews trailers per patch

4 of 5 patches have a Reviewed-by or Acked-by.

PatchNogah FrankelNikolay Aleksandrov
1/5
2/5R-b R-b
3/5R-b
4/5R-b
5/5R-b

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

Read the v2 thread

Cover letter [patch net-next v2 0/5] mlxsw: Offload bridge device mrouter

From: Jiri Pirko <[email protected]>

Yotam says:

Similarly to a bridged port, the bridge device itself can be configured by the user to be an mrouter port. In this case, all multicast traffic should be forwarded to it. Make the mlxsw Spectrum driver offload these directives to the Spectrum hardware.

Patches 1 and 2 add a new switchdev notification for bridge device mrouter port status and make the bridge module notify about it.

Patches 3-5 change the mlxsw Spectrum driver to handle these notifications by adding the Spectrum router port to the bridge MDB entries.

---
v1->v2:
- patch1:
- Don't add the MDB_RTR_TYPE_TEMP state and use the timer_pending to distinguish between learning-on and learning-off states

Yotam Gigi (5):
net: bridge: Notify on bridge device mrouter state changes
net: bridge: Export bridge multicast router state
mlxsw: spectrum: router: Export the mlxsw_sp_router_port function
mlxsw: spectrum_switchdev: Add support for router port in SMID entries
mlxsw: spectrum_switchdev: Support bridge mrouter notifications

 .../net/ethernet/mellanox/mlxsw/spectrum_router.c  |  2 +-
 .../net/ethernet/mellanox/mlxsw/spectrum_router.h  |  1 +
 .../ethernet/mellanox/mlxsw/spectrum_switchdev.c   | 76 +++++++++++++++++++++-
 include/linux/if_bridge.h                          |  5 ++
 include/net/switchdev.h                            |  1 +
 net/bridge/br_multicast.c                          | 50 +++++++++++++-
 6 files changed, 128 insertions(+), 7 deletions(-)
Signature · 1 line
2.9.5