[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20210919191515.GC12836@amd>
Date: Sun, 19 Sep 2021 21:15:15 +0200
From: Pavel Machek <pavel@...x.de>
To: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
Cc: linux-kernel@...r.kernel.org, stable@...r.kernel.org,
Olga Kornievskaia <kolga@...app.com>,
Trond Myklebust <trond.myklebust@...merspace.com>,
Sasha Levin <sashal@...nel.org>
Subject: Re: [PATCH 5.10 080/306] SUNRPC query transports source port
Hi!
> [ Upstream commit a8482488a7d6d320f63a9ee1912dbb5ae5b80a61 ]
>
> 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 *transport)
> return port;
> }
>
> +unsigned short get_srcport(struct rpc_xprt *xprt)
> +{
> + struct sock_xprt *sock = container_of(xprt, struct sock_xprt, xprt);
> + return sock->srcport;
> +}
> +EXPORT_SYMBOL(get_srcport);
> +
> static unsigned short xs_next_srcport(struct sock_xprt *transport, unsigned short port)
> {
> if (transport->srcport != 0)
--
DENX Software Engineering GmbH, Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Download attachment "signature.asc" of type "application/pgp-signature" (182 bytes)
Powered by blists - more mailing lists