linux-rdma.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH rdma-next 0/3] Add net namespace awareness to device registration
@ 2025-06-17  8:44 Leon Romanovsky
  2025-06-17  8:44 ` [PATCH rdma-next 1/3] RDMA/core: Extend RDMA device registration to be net namespace aware Leon Romanovsky
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Leon Romanovsky @ 2025-06-17  8:44 UTC (permalink / raw)
  To: Jason Gunthorpe; +Cc: Dennis Dalessandro, linux-rdma, Mark Bloch, Parav Pandit

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(-)

-- 
2.49.0


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2025-06-26 12:14 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-06-17  8:44 [PATCH rdma-next 0/3] Add net namespace awareness to device registration Leon Romanovsky
2025-06-17  8:44 ` [PATCH rdma-next 1/3] RDMA/core: Extend RDMA device registration to be net namespace aware Leon Romanovsky
2025-06-17  8:44 ` [PATCH rdma-next 2/3] RDMA/mlx5: Allocate IB device with net namespace supplied from core dev Leon Romanovsky
2025-06-17  8:44 ` [PATCH rdma-next 3/3] RDMA/ipoib: Use parent rdma device net namespace Leon Romanovsky
2025-06-26 12:14 ` [PATCH rdma-next 0/3] Add net namespace awareness to device registration Leon Romanovsky

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).