Re: [PATCH 5.10 080/306] SUNRPC query transports source port

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

Attachment: signature.asc
Description: Digital signature


[Index of Archives]     [Linux Kernel]     [Kernel Development Newbies]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Hiking]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux