From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3CB5D301493; Tue, 10 Mar 2026 15:48:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773157684; cv=none; b=JgHjhfOFgNHM/VhEyh9ugUtZtbtZ9Ewz5e4MNis01kHJ6/if8Z/SvsqJNzhd+zA2M8h7RMNceAfSXfFIibrVip0G996uomg6KJ+Fwv+Ya0AUhvBYEZzzA+o2JrAB5Eo9AjUhpycIVZZGD8V/ZVFbsybJuzlP08vXX85AfAcagzM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773157684; c=relaxed/simple; bh=Q+glRiJAArKrT+s3VDs/Io+eURZVMnfVXEi7/JrppYc=; h=Message-ID:Date:MIME-Version:Subject:To:References:From: In-Reply-To:Content-Type; b=RHoTqlXyXMNaU5Ne3mdg3e43n6HLXVk5azML0SdB8dXt/whSsDGezRWjvJsdePvJRkGGBEV/dNeGBJqleNtQeKx3eMiKL7aYtleeDey6zVOCG9o2ikWw+iB6+eVBRsiU4J5wM9zulpTLfSwH9pLRISX9lxza+j+2Wz8B6KqI3Fk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=teuRhIkd; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="teuRhIkd" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 65D53C19423; Tue, 10 Mar 2026 15:48:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1773157683; bh=Q+glRiJAArKrT+s3VDs/Io+eURZVMnfVXEi7/JrppYc=; h=Date:Subject:To:References:From:In-Reply-To:From; b=teuRhIkdJWjnYhdMIgMKuyyteyn9xzWYDv4F3JG9/npBhXR4mHQSLZAdZXlrv++yY FIDaWzjf46sL/Ib0jiTDFfdDFDF2OF4FDSAdxHqJl4hgp+BDYx9KH4Gs7TzkcpO1b8 CKus/nd6f/IpLWlzbOttu188uzpDZu/LRUh/OG03hfqX4oSazXlLkMwshzdjQ7Fq3B bqqTvGpaLsmTHIzTf/5fM6+/ubPSi7xoUrcC4O7Be8oU6b1rw+akKqqJT16dq7nH6X MKTbjO11Pqy0wkn25VQ5U9Jecp4PCkGgZiuclMtYbGJ26CcAlnpVzNBrBS+Jow+gAW Usjmk6KQbL74A== Message-ID: <6938b5e4-8b2d-4d4f-8e56-93f50b29348b@kernel.org> Date: Tue, 10 Mar 2026 09:48:03 -0600 Precedence: bulk X-Mailing-List: linux-rdma@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v5 2/4] RDMA/rxe: Add net namespace support for IPv4/IPv6 sockets Content-Language: en-US To: Zhu Yanjun , jgg@ziepe.ca, leon@kernel.org, zyjzyj2000@gmail.com, shuah@kernel.org, linux-rdma@vger.kernel.org, linux-kselftest@vger.kernel.org References: <20260310020519.101415-1-yanjun.zhu@linux.dev> <20260310020519.101415-3-yanjun.zhu@linux.dev> From: David Ahern In-Reply-To: <20260310020519.101415-3-yanjun.zhu@linux.dev> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit 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 > --- > 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