|
|
Log in / Subscribe / Register

net/mlx5: Refactor devcom and add net namespace support

From:  Tariq Toukan <tariqt-AT-nvidia.com>
To:  Eric Dumazet <edumazet-AT-google.com>, Jakub Kicinski <kuba-AT-kernel.org>, Paolo Abeni <pabeni-AT-redhat.com>, Andrew Lunn <andrew+netdev-AT-lunn.ch>, "David S. Miller" <davem-AT-davemloft.net>
Subject:  [PATCH net-next 0/4] net/mlx5: Refactor devcom and add net namespace support
Date:  Thu, 11 Sep 2025 09:31:03 +0300
Message-ID:  <1757572267-601785-1-git-send-email-tariqt@nvidia.com>
Cc:  Saeed Mahameed <saeedm-AT-nvidia.com>, Leon Romanovsky <leon-AT-kernel.org>, Tariq Toukan <tariqt-AT-nvidia.com>, Mark Bloch <mbloch-AT-nvidia.com>, <netdev-AT-vger.kernel.org>, <linux-rdma-AT-vger.kernel.org>, <linux-kernel-AT-vger.kernel.org>, Gal Pressman <gal-AT-nvidia.com>, Parav Pandit <parav-AT-nvidia.com>, Shay Drory <shayd-AT-nvidia.com>
Archive-link:  Article

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

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: 1f24a240974589ce42f70502ccb3ff3f5189d69a
-- 
2.31.1




Copyright © 2025, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds