Skip to content

net/mlx5: Refactor devcom and add net namespace support

Tariq Toukan linux-rdma lkml netdev 2 versions – Applied

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

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest4 patches 0 repliesApplied 4/4
  2. v14 patches 7 repliesSuperseded

Changes in v2 from the cover letter

- Added Simon's reviewed by tag to patches 1,2 and 3.
- Extended the commit message of patch 4 to address Simon's comments on it.

Patches in v2 All 4 applied

#Subject and filesSizeRepliesApplied
1/4net/mlx5: Refactor devcom to use match attributesdrivers/net/ethernet/mellanox/mlx5/core/en_main.c drivers/net/ethernet/mellanox/mlx5/core/en_tc.c drivers/net/ethernet/mellanox/mlx5/core/eswitch.h +6 more+65 -260 repliesApplied
2/4net/mlx5: Lag, move devcom registration to LAG layerdrivers/net/ethernet/mellanox/mlx5/core/lag/lag.c drivers/net/ethernet/mellanox/mlx5/core/main.c+30 -280 repliesApplied
3/4net/mlx5: Add net namespace support to devcomdrivers/net/ethernet/mellanox/mlx5/core/en_tc.c drivers/net/ethernet/mellanox/mlx5/core/lib/devcom.c drivers/net/ethernet/mellanox/mlx5/core/lib/devcom.h +1 more+24 -00 repliesApplied
4/4net/mlx5: Lag, add net namespace supportdrivers/net/ethernet/mellanox/mlx5/core/devlink.c drivers/net/ethernet/mellanox/mlx5/core/lag/lag.c drivers/net/ethernet/mellanox/mlx5/core/lag/lag.h+12 -80 repliesApplied

Reviews trailers per patch

All 4 patches have a Reviewed-by or Acked-by.

PatchMark BlochSimon HormanParav Pandit
1/4R-b R-b
2/4R-b R-b
3/4R-b R-b R-b
4/4R-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v2 thread

Cover letter [PATCH net-next V2 0/4] net/mlx5: Refactor devcom and add net namespace support

Hi,

This series by Shay improves the mlx5 devcom infrastructure by introducing a structured matching attribute interface, relocating certain devcom registration flows to more appropriate locations, and adding net namespace awareness to the devcom framework and its users.

Patch 1: Refactors the devcom interface to accept a match attribute structure instead of raw keys, enabling future extensibility such as namespace-based matching.

Patch 2: Moves the devcom registration for HCA components from the core code to the LAG layer to better reflect their logical ownership and lifecycle.

Patch 3: Adds net namespace support to the devcom framework, enabling components to operate in isolated namespaces.

Patch 4: Updates the LAG layer to make use of the new namespace-aware devcom interface and improves reload behavior in LAG mode.

Regards,
Tariq

V1:
https://lore.kernel.org/all/[email protected]/

Changes:
V1->V2:
- Added Simon's reviewed by tag to patches 1,2 and 3.
- Extended the commit message of patch 4 to address Simon's comments on it.

Shay Drory (4):
net/mlx5: Refactor devcom to use match attributes net/mlx5: Lag, move devcom registration to LAG layer net/mlx5: Add net namespace support to devcom net/mlx5: Lag, add net namespace support

 .../net/ethernet/mellanox/mlx5/core/devlink.c |  5 ---
 .../net/ethernet/mellanox/mlx5/core/en_main.c |  6 ++-
 .../net/ethernet/mellanox/mlx5/core/en_tc.c   | 10 +++--
 .../net/ethernet/mellanox/mlx5/core/eswitch.h |  7 ++-
 .../mellanox/mlx5/core/eswitch_offloads.c     |  5 ++-
 .../net/ethernet/mellanox/mlx5/core/lag/lag.c | 45 +++++++++++++++++--
 .../net/ethernet/mellanox/mlx5/core/lag/lag.h |  1 +
 .../ethernet/mellanox/mlx5/core/lib/clock.c   | 14 ++++--
 .../ethernet/mellanox/mlx5/core/lib/devcom.c  | 44 +++++++++++++-----
 .../ethernet/mellanox/mlx5/core/lib/devcom.h  | 16 ++++++-
 .../net/ethernet/mellanox/mlx5/core/lib/sd.c  |  6 ++-
 .../net/ethernet/mellanox/mlx5/core/main.c    | 24 ----------
 12 files changed, 126 insertions(+), 57 deletions(-)

base-commit: 5b5ba63a54cc7cb050fa734dbf495ffd63f9cbf7

Signature · 1 line
2.31.1