]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
RDMA/rxe: Add net namespace support for IPv4/IPv6 sockets
authorZhu Yanjun <yanjun.zhu@linux.dev>
Fri, 13 Mar 2026 02:30:56 +0000 (19:30 -0700)
committerLeon Romanovsky <leon@kernel.org>
Mon, 30 Mar 2026 17:47:43 +0000 (13:47 -0400)
commit13f2a53c2a71e12478279261b35e2abf393523b3
tree5df84524bffd55acc59180d7349e3afdd11147ce
parenta60e3f3d6fbab9dc45c653e5046307e0e7fcde98
RDMA/rxe: Add net namespace support for IPv4/IPv6 sockets

Add a net namespace implementation file to rxe to manage the
lifecycle of IPv4 and IPv6 sockets per network namespace.

This implementation handles the creation and destruction of the
sockets both for init_net and for dynamically created network
namespaces. The sockets are initialized when a namespace becomes
active and are properly released when the namespace is removed.

This change provides the infrastructure needed for rxe to operate
correctly in environments using multiple network namespaces.

Reviewed-by: David Ahern <dsahern@kernel.org>
Signed-off-by: Zhu Yanjun <yanjun.zhu@linux.dev>
Link: https://patch.msgid.link/20260313023058.13020-3-yanjun.zhu@linux.dev
Signed-off-by: Leon Romanovsky <leon@kernel.org>
drivers/infiniband/sw/rxe/Makefile
drivers/infiniband/sw/rxe/rxe_ns.c [new file with mode: 0644]
drivers/infiniband/sw/rxe/rxe_ns.h [new file with mode: 0644]