Received: by 2002:a05:7412:5112:b0:fa:6e18:a558 with SMTP id fm18csp1010365rdb; Wed, 24 Jan 2024 01:54:48 -0800 (PST) X-Google-Smtp-Source: AGHT+IHPclaGOkHS8ofITsrCnCwgSiE5sTcOy2IHTL9mIM2OuydXTnhEllZYH+zBmDQvbjEpo6ho X-Received: by 2002:a05:6a20:779e:b0:19c:57cb:72f with SMTP id c30-20020a056a20779e00b0019c57cb072fmr510359pzg.116.1706090088259; Wed, 24 Jan 2024 01:54:48 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706090088; cv=pass; d=google.com; s=arc-20160816; b=uLRtZWvduHUDx0ZI4EW5dxJ4Imd1ne2v6NMUhtqIrx1E5OnMt9zSgJ74FXZNxlls3s ebhb9HZS3ru3RmOHUnZDEMaekezPRSmhk/QEoQhybjQvLSNivGaF5Opx7nrtEIanZPlJ dnHE2elSanwwrFCZRKILKZIc5NEdDC9wJVkMXPFqF578Kh78Y1dFS8aauk387E3OEMy2 D4vyzwEgf03Zom7SwhbeirZtpL9g0C3Vce/b6q5UdxTAapHa8B1jLwb1/1H6WnRzBblO NiPIhuRFxmnqMqa6nqDuaEGurNX5N48DKMz1war+2lim34aGp+CTbhB4DhXeX82yqh5y tRKg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=FrHhwRT74LzSAxTYDGblPpNTXXJlf04Uj/YWEWBkekI=; fh=ofj96J70Ygzqum8g0Bp1DATaKanHgmM8/kR8WVyIjiM=; b=vUivSRaNxk/3fcLMPtoSRL3V3FKw35IneIYtPB7G+GoQ7OT2981X+NYiUAyPTK90lo PQ115Eli6R7MONx1QVs94lnVAr+C/y/9DX0YMHzk5fl1kW4Cjv53GuUuZqZAWJmPTT5+ wO+XXT0wh4PfRTaE0vDgiaquMYn2SDKKbL5BXzDXyENMUf/hAfaI1ShbWs7lNk9OxE4a ouvPUuxkcBiZSZFi9K8PEggGDxKNuesHHvLZZ3jqsH4pVqcbr7sNfyZpF+gYyikCczXk lzkKWnRPphUXBuAA+IJZZcmrwLhBw6QvnptTRiNJBlp6NGIb0hdEnttX7aK0USm0FR4P +kLw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="ZFAr/F4l"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-nfs+bounces-1301-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-nfs+bounces-1301-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id u6-20020a170903124600b001d75d64b2absi4181113plh.1.2024.01.24.01.54.48 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Jan 2024 01:54:48 -0800 (PST) Received-SPF: pass (google.com: domain of linux-nfs+bounces-1301-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="ZFAr/F4l"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-nfs+bounces-1301-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-nfs+bounces-1301-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 119F1282251 for ; Wed, 24 Jan 2024 09:52:24 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B420518044; Wed, 24 Jan 2024 09:52:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="ZFAr/F4l" X-Original-To: linux-nfs@vger.kernel.org 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 88FB518032; Wed, 24 Jan 2024 09:52:19 +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=1706089939; cv=none; b=myCGQzfk2UfI95eHyYgZRUBNMdiH/peFU5AYk8O9zTPnnjUxJeUNjGkjaZw67768uCqD2WuZt7NCcQ75EBQ9W2JXBmRsP/FSw4IW87V8nllac4oKxnvm7Xguc81xpIR2cnjTRM8j6ivnwEgp8MfJ1TFWY5KNtr+epfaXox7ru1c= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706089939; c=relaxed/simple; bh=FrHhwRT74LzSAxTYDGblPpNTXXJlf04Uj/YWEWBkekI=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=bkFZcp4oZiqwIj+JArRZyXRLJJHaBDVJZ45wVCmIn9kDuOGuea92qhWUsL+w2JL/fgv80gy1E8KmJtmFPcFvgl1MQ60sbddCC7m82JiGLwmGoBec2nQlTZNmUCxvVXL34BndWRH2ML1GTgdDNBkxfW1oLyIUtFZ4MFgLfArAQXs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=ZFAr/F4l; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9891FC433F1; Wed, 24 Jan 2024 09:52:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1706089939; bh=FrHhwRT74LzSAxTYDGblPpNTXXJlf04Uj/YWEWBkekI=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=ZFAr/F4l3Zj2y3DvLi82KBSvozWVujy2ittCR06wYIJJEG0wU/uBwU770ShDMowmi ptXD6zYI4/IIVGkoIG4PIP/P3P52OpfU4uO2r06rrY07Y1dHBI0j+XX/3T0ll5t0VO CzN3FVRMwZwbXe5+CnMUb9EtF3VfDHbiaCgY+Oc6aa62Bnw9JeX9pGEfTOtuOiAy6A cwuZq96mi+aLxEJZ4wDxounb1SiDd39dbAO6DgVemw76pGp85GuTTlx636qMEJZPdv kRYn+wz4BKQH3aH7ob8CJ1qgQ2RzmI5m3uvjPDmS9pBHB5yW+n/2m/cDACjqdjCVMk F9tY/WEeB7SMA== Date: Wed, 24 Jan 2024 10:52:15 +0100 From: Lorenzo Bianconi To: Jeff Layton Cc: Chuck Lever , NeilBrown , linux-nfs@vger.kernel.org, lorenzo.bianconi@redhat.com, kuba@kernel.org, horms@kernel.org, netdev@vger.kernel.org Subject: Re: [PATCH v6 3/3] NFSD: add write_ports to netlink command Message-ID: References: <9e3ae337dcf168c60c4cfd51aa0b2fc7b24bcbfb.camel@kernel.org> <170595930799.23031.17998490973211605470@noble.neil.brown.name> <85b02061798a1b750a87b0302681b86651d0c7a3.camel@kernel.org> <3f035d3bc494ec03b83ae237e407c42f2ddc4c53.camel@kernel.org> Precedence: bulk X-Mailing-List: linux-nfs@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="dfijB6BbaqwUDN2H" Content-Disposition: inline In-Reply-To: <3f035d3bc494ec03b83ae237e407c42f2ddc4c53.camel@kernel.org> --dfijB6BbaqwUDN2H Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable [...] >=20 > That's a great question. We do need to properly support the -H option to > rpc.nfsd. What we do today is look up the hostname or address using > getaddrinfo, and then open a listening socket for that address and then > pass that fd down to the kernel, which I think then takes the socket and > sticks it on sv_permsocks. >=20 > All of that seems a bit klunky. Ideally, I'd say the best thing would be > to allow userland to pass the sockaddr we look up directly via netlink, > and then let the kernel open the socket. That will probably mean > refactoring some of the svc_xprt_create machinery to take a sockaddr, > but I don't think it looks too hard to do. Do we already have a specific use case for it? I think we can even add it later when we have a defined use case for it on top of the current series. Regards, Lorenzo >=20 > --=20 > Jeff Layton >=20 --dfijB6BbaqwUDN2H Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYKAB0WIQTquNwa3Txd3rGGn7Y6cBh0uS2trAUCZbDdzwAKCRA6cBh0uS2t rANyAP9i20KXWb/nbg18Mp0jyYE4BoELA+TaXQRtC3o9m9M30AEAjnZNc7Nw6W35 xJMldpec4sHoC/HU7x4qqiUH3e4JzAY= =Qoyo -----END PGP SIGNATURE----- --dfijB6BbaqwUDN2H--