On 3/9/26 8:05 PM, Zhu Yanjun wrote: > 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. > > Signed-off-by: Zhu Yanjun <[email protected]> > --- > drivers/infiniband/sw/rxe/Makefile | 3 +- > drivers/infiniband/sw/rxe/rxe_ns.c | 124 +++++++++++++++++++++++++++++ > drivers/infiniband/sw/rxe/rxe_ns.h | 26 ++++++ > 3 files changed, 152 insertions(+), 1 deletion(-) > create mode 100644 drivers/infiniband/sw/rxe/rxe_ns.c > create mode 100644 drivers/infiniband/sw/rxe/rxe_ns.h >
Reviewed-by: David Ahern <[email protected]>
