summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorOlga Kornievskaia <kolga@netapp.com>2021-06-24 05:28:48 +0200
committerTrond Myklebust <trond.myklebust@hammerspace.com>2021-07-08 20:03:24 +0200
commita8482488a7d6d320f63a9ee1912dbb5ae5b80a61 (patch)
tree3f3a8b81e1df1cde26b865f10fe48c2652c084da /include
parentSUNRPC display xprt's main value in sysfs's xprt_info (diff)
downloadlinux-a8482488a7d6d320f63a9ee1912dbb5ae5b80a61.tar.xz
linux-a8482488a7d6d320f63a9ee1912dbb5ae5b80a61.zip
SUNRPC query transport's source port
Provide ability to query transport's source port. Signed-off-by: Olga Kornievskaia <kolga@netapp.com> Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Diffstat (limited to 'include')
-rw-r--r--include/linux/sunrpc/xprtsock.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/sunrpc/xprtsock.h b/include/linux/sunrpc/xprtsock.h
index 3c1423ee74b4..8c2a712cb242 100644
--- a/include/linux/sunrpc/xprtsock.h
+++ b/include/linux/sunrpc/xprtsock.h
@@ -10,6 +10,7 @@
int init_socket_xprt(void);
void cleanup_socket_xprt(void);
+unsigned short get_srcport(struct rpc_xprt *);
#define RPC_MIN_RESVPORT (1U)
#define RPC_MAX_RESVPORT (65535U)