]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
RDMA/rxe: Support RDMA link creation and destruction per net namespace
authorZhu Yanjun <yanjun.zhu@linux.dev>
Fri, 13 Mar 2026 02:30:57 +0000 (19:30 -0700)
committerLeon Romanovsky <leon@kernel.org>
Mon, 30 Mar 2026 17:47:43 +0000 (13:47 -0400)
commitf1327abd6abed031ae4146825c6b28bdd1456474
treef4d51990cbe63ab98c5994b4b159c7d60d577605
parent13f2a53c2a71e12478279261b35e2abf393523b3
RDMA/rxe: Support RDMA link creation and destruction per net namespace

After introducing dellink handling and per-net namespace management
for IPv4 and IPv6 sockets, extend rxe to create and destroy RDMA links
within each network namespace.

With this change, RDMA links can be instantiated both in init_net and
in other network namespaces. The lifecycle of the RDMA link is now tied
to the corresponding namespace and is properly cleaned up when the
namespace or link is removed.

This ensures rxe behaves correctly in multi-namespace environments and
keeps socket and RDMA link resources consistent across namespace
creation and teardown.

Reviewed-by: David Ahern <dsahern@kernel.org>
Signed-off-by: Zhu Yanjun <yanjun.zhu@linux.dev>
Link: https://patch.msgid.link/20260313023058.13020-4-yanjun.zhu@linux.dev
Signed-off-by: Leon Romanovsky <leon@kernel.org>
drivers/infiniband/sw/rxe/rxe.c
drivers/infiniband/sw/rxe/rxe_net.c
drivers/infiniband/sw/rxe/rxe_net.h