Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp1407604pxb; Sun, 19 Sep 2021 16:58:14 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw253Fg+C3OawVCQlETzR5O1J6+OJzIyt1lF5TnD/1jKIZxsX2rG8jWHL26BqA7piqyLW6D X-Received: by 2002:a17:906:a04f:: with SMTP id bg15mr26932995ejb.417.1632095894177; Sun, 19 Sep 2021 16:58:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632095894; cv=none; d=google.com; s=arc-20160816; b=B/Il/IEHEi7FYnDOXFjyVPCMucDP/fCSxblE1dRN+9HDJp5/rIubJk5gWygPlUj5Ze BPQvYQd5GYDs/DUfslx+JMU1NeIPmRMn4f1WGxONv2fGnTgR2l3QzpYPm8f82aH+y5a3 mSkbVvVa5dX5gmyNub7leKMNnooitexC9tktsBXcmYaC6k4vMd/Dpxz1YlNB0PJ1rkcT UB4JGQNt3c0VeCL/aVa1/Y50wGER48HjyW/ExN64D9/y7m5Js/wcl3A/VXF9uuysSjH0 bQgcWTWjguHEigrFJ0F/IQoImM2XZmUPtxxgxCfirTVKnAnkij5gMX2Lo7YVebm6wbUb qatQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=WPmkgl0jhjvG5SsY5f+PDxntOQtuoGq/WEOjOi2oHpk=; b=AW/tRQDXg0utAtnNct57dEHWCZeNEup3bJzO/q/G9RQULDAKnw3BgXnRa3bmOuAMYd qPXxnQWmtRYzWRTBvFcbz9v//OydeO4an49NxxiLLKK1EsJrZc5rJvp35at5TLkJEMLE b8ovUs6fVC7mJFEZH2zmKwPI+38+dgGUmvqeMX+qbCaREUK0lumy/x6l7XuyCu3v7UV/ kuEfXB887BE5UK9a9q0e876TY0/buwt3K/6yGQjAHkTbdHXM5tjUvLwVLiOwSCfkQ84S dN48+rB+5WGDIttBUWQLKBx0wICER8eoyeQzpAEv6iCHEAVoQw4e6a71pmkPF1BYFs+C xcLg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id qf42si6086002ejc.93.2021.09.19.16.57.29; Sun, 19 Sep 2021 16:58:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231514AbhISTQo (ORCPT + 99 others); Sun, 19 Sep 2021 15:16:44 -0400 Received: from jabberwock.ucw.cz ([46.255.230.98]:35312 "EHLO jabberwock.ucw.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229477AbhISTQm (ORCPT ); Sun, 19 Sep 2021 15:16:42 -0400 Received: by jabberwock.ucw.cz (Postfix, from userid 1017) id E6B211C0B82; Sun, 19 Sep 2021 21:15:15 +0200 (CEST) Date: Sun, 19 Sep 2021 21:15:15 +0200 From: Pavel Machek To: Greg Kroah-Hartman Cc: linux-kernel@vger.kernel.org, stable@vger.kernel.org, Olga Kornievskaia , Trond Myklebust , Sasha Levin Subject: Re: [PATCH 5.10 080/306] SUNRPC query transports source port Message-ID: <20210919191515.GC12836@amd> References: <20210916155753.903069397@linuxfoundation.org> <20210916155756.781145663@linuxfoundation.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="WfZ7S8PLGjBY9Voh" Content-Disposition: inline In-Reply-To: <20210916155756.781145663@linuxfoundation.org> User-Agent: Mutt/1.5.23 (2014-03-12) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --WfZ7S8PLGjBY9Voh Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi! > [ Upstream commit a8482488a7d6d320f63a9ee1912dbb5ae5b80a61 ] >=20 > Provide ability to query transport's source port. This adds unused function to 5.10 kernel. Next patch fixes it up, but user does not show up. Do we want it in 5.10-stable? Best regards, Pavel > +++ b/net/sunrpc/xprtsock.c > @@ -1639,6 +1639,13 @@ static int xs_get_srcport(struct sock_xprt *transp= ort) > return port; > } > =20 > +unsigned short get_srcport(struct rpc_xprt *xprt) > +{ > + struct sock_xprt *sock =3D container_of(xprt, struct sock_xprt, xprt); > + return sock->srcport; > +} > +EXPORT_SYMBOL(get_srcport); > + > static unsigned short xs_next_srcport(struct sock_xprt *transport, unsig= ned short port) > { > if (transport->srcport !=3D 0) --=20 DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany --WfZ7S8PLGjBY9Voh Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iEYEARECAAYFAmFHjEMACgkQMOfwapXb+vJ4iQCfUMaMR3foHMBW/0B/hbsMKLs+ OHMAoJMJn1EagVCn597O71ll0htPse+q =lCw6 -----END PGP SIGNATURE----- --WfZ7S8PLGjBY9Voh--