Skip to content

mlxsw: Unified bridge conversion - part 5/6

Ido Schimmel netdev 1 version Applied

Status from this message: This series was applied to netdev/net-next.git (master)

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest10 patches 0 repliesApplied 10/10

Patches in v1 All 10 applied

#Subject and filesSizeRepliesApplied
1/10mlxsw: Align PGT index to legacy bridge modeldrivers/net/ethernet/mellanox/mlxsw/spectrum.h drivers/net/ethernet/mellanox/mlxsw/spectrum_pgt.c+14 -30 repliesApplied
2/10mlxsw: spectrum_switchdev: Rename MID structuredrivers/net/ethernet/mellanox/mlxsw/spectrum.h drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c+97 -910 repliesApplied
3/10mlxsw: spectrum_switchdev: Rename MIDs listdrivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c+11 -100 repliesApplied
4/10mlxsw: spectrum_switchdev: Save MAC and FID as a key in 'struct mlxsw_sp_mdb_entry'drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c+14 -100 repliesApplied
5/10mlxsw: spectrum_switchdev: Add support for maintaining hash table of MDB entriesdrivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c+15 -00 repliesApplied
6/10mlxsw: spectrum_switchdev: Add support for maintaining list of ports per MDB entrydrivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c+153 -00 repliesApplied
7/10mlxsw: spectrum_switchdev: Implement mlxsw_sp_mc_mdb_entry_{init, fini}()drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c+174 -20 repliesApplied
8/10mlxsw: spectrum_switchdev: Add support for getting and putting MDB entrydrivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c+78 -20 repliesApplied
9/10mlxsw: spectrum_switchdev: Flush port from MDB entries according to FID indexdrivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c+11 -60 repliesApplied
10/10mlxsw: spectrum_switchdev: Convert MDB code to use PGT APIsdrivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c+48 -3040 repliesApplied

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH net-next 00/10] mlxsw: Unified bridge conversion - part 5/6

This is the fifth part of the conversion of mlxsw to the unified bridge model.

The previous part that was merged in commit d521bc0a0f7c ("Merge branch 'mlxsw-unified-bridge-conversion-part-4-6'") converted the flooding code to use the new APIs of the unified bridge model. As part of this conversion, the flooding code started accessing the port group table (PGT) directly in order to allocate MID indexes and configure the ports via which a packet needs to be replicated.

MDB entries in the device also make use of the PGT table, but the related code has its own PGT allocator and does not make use of the common core that was added in the previous patchset. This patchset converts the MDB code to use the common PGT code.

The first nine patches prepare the MDB code for the conversion that is performed by the last patch.

Amit Cohen (10):
mlxsw: Align PGT index to legacy bridge model
mlxsw: spectrum_switchdev: Rename MID structure
mlxsw: spectrum_switchdev: Rename MIDs list
mlxsw: spectrum_switchdev: Save MAC and FID as a key in 'struct
mlxsw_sp_mdb_entry'
mlxsw: spectrum_switchdev: Add support for maintaining hash table of
MDB entries
mlxsw: spectrum_switchdev: Add support for maintaining list of ports
per MDB entry
mlxsw: spectrum_switchdev: Implement mlxsw_sp_mc_mdb_entry_{init,

    fini}()

mlxsw: spectrum_switchdev: Add support for getting and putting MDB
entry
mlxsw: spectrum_switchdev: Flush port from MDB entries according to
FID index
mlxsw: spectrum_switchdev: Convert MDB code to use PGT APIs

 .../net/ethernet/mellanox/mlxsw/spectrum.h    |  10 +-
 .../ethernet/mellanox/mlxsw/spectrum_pgt.c    |  16 +-
 .../mellanox/mlxsw/spectrum_switchdev.c       | 697 +++++++++++-------
 3 files changed, 455 insertions(+), 268 deletions(-)
Signature · 1 line
2.36.1