From: Leon Romanovsky <leon@kernel.org>
To: Jason Gunthorpe <jgg@nvidia.com>
Cc: Dennis Dalessandro <dennis.dalessandro@cornelisnetworks.com>,
linux-rdma@vger.kernel.org, Mark Bloch <mbloch@nvidia.com>,
Parav Pandit <parav@nvidia.com>
Subject: [PATCH rdma-next 0/3] Add net namespace awareness to device registration
Date: Tue, 17 Jun 2025 11:44:00 +0300 [thread overview]
Message-ID: <cover.1750149405.git.leon@kernel.org> (raw)
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
next reply other threads:[~2025-06-17 8:44 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-06-17 8:44 Leon Romanovsky [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=cover.1750149405.git.leon@kernel.org \
--to=leon@kernel.org \
--cc=dennis.dalessandro@cornelisnetworks.com \
--cc=jgg@nvidia.com \
--cc=linux-rdma@vger.kernel.org \
--cc=mbloch@nvidia.com \
--cc=parav@nvidia.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.