]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
RDMA/ipoib: Use parent rdma device net namespace
authorMark Bloch <mbloch@nvidia.com>
Tue, 17 Jun 2025 08:44:03 +0000 (11:44 +0300)
committerLeon Romanovsky <leon@kernel.org>
Thu, 26 Jun 2025 12:13:47 +0000 (08:13 -0400)
commitf1208b05574f63c52e88109d8c75afdf4fc6bf42
tree53a07e7022d201593725c615d75ebd87f8be2b85
parent611d08207d313500d010d8792424346ce70d0cfb
RDMA/ipoib: Use parent rdma device net namespace

Use the net namespace of the underlying rdma device.
After honoring the rdma device's namespace, the ipoib
netdev now also runs in the same net namespace of the
rdma device.

Add an API to read the net namespace of the rdma device
so that ULP such as IPoIB can use it to initialize its
netdev.

Signed-off-by: Parav Pandit <parav@nvidia.com>
Signed-off-by: Mark Bloch <mbloch@nvidia.com>
Signed-off-by: Leon Romanovsky <leonro@nvidia.com>
drivers/infiniband/ulp/ipoib/ipoib_main.c
include/rdma/ib_verbs.h