Skip to content

Add net namespace awareness to device registration

Leon Romanovsky linux-rdma 1 version Applied

Status from this message: Applied, thanks!

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 1 replyApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/3RDMA/core: Extend RDMA device registration to be net namespace awaredrivers/infiniband/core/device.c drivers/infiniband/sw/rdmavt/vt.c include/rdma/ib_verbs.h+22 -50 replies
2/3RDMA/mlx5: Allocate IB device with net namespace supplied from core devdrivers/infiniband/hw/mlx5/ib_rep.c drivers/infiniband/hw/mlx5/main.c drivers/net/ethernet/mellanox/mlx5/core/lib/mlx5.h +1 more+11 -80 replies
3/3RDMA/ipoib: Use parent rdma device net namespacedrivers/infiniband/ulp/ipoib/ipoib_main.c include/rdma/ib_verbs.h+6 -00 replies

Reviews trailers per patch

1 of 3 patches has a Reviewed-by or Acked-by.

PatchParav Pandit
1/3
2/3R-b
3/3

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 rdma-next 0/3] Add net namespace awareness to device registration

From Mark:
Introduces net namespace awareness to RDMA device registration and update relevant users accordingly.

Currently, RDMA devices are always registered in the initial network namespace, for example even when their associated devlink devices have been moved to a different namespace via devlink reload.

This results in inconsistent behavior and namespace mismatches.

So in this series, we update the RDMA core to optionally accept a net namespace during device allocation, allowing drivers to associate the RDMA device with the correct namespace. In addition, we ensures that IPoIB inherit the namespace from the underlying RDMA device, maintaining consistency across the RDMA stack.

Thanks

Mark Bloch (3):
RDMA/core: Extend RDMA device registration to be net namespace aware RDMA/mlx5: Allocate IB device with net namespace supplied from core
dev
RDMA/ipoib: Use parent rdma device net namespace

 drivers/infiniband/core/device.c                  | 14 ++++++++++++--
 drivers/infiniband/hw/mlx5/ib_rep.c               |  3 ++-
 drivers/infiniband/hw/mlx5/main.c                 |  6 ++++--
 drivers/infiniband/sw/rdmavt/vt.c                 |  2 +-
 drivers/infiniband/ulp/ipoib/ipoib_main.c         |  2 ++
 .../net/ethernet/mellanox/mlx5/core/lib/mlx5.h    |  5 -----
 include/linux/mlx5/driver.h                       |  5 +++++
 include/rdma/ib_verbs.h                           | 15 +++++++++++++--
 8 files changed, 39 insertions(+), 13 deletions(-)
Signature · 1 line
2.49.0