summaryrefslogtreecommitdiff
path: root/include/linux/sunrpc/xprtmultipath.h
diff options
context:
space:
mode:
authorAnna Schumaker <anna.schumaker@oracle.com>2025-02-07 15:42:24 -0500
committerTrond Myklebust <trond.myklebust@hammerspace.com>2025-03-21 09:34:53 -0400
commitdf210d9b0951d714c1668c511ca5c8ff38cf6916 (patch)
treeac61904fbdf3e2a7acd3ab13f685546c5874aa67 /include/linux/sunrpc/xprtmultipath.h
parent88efd79c3f1db75b0f1edac71eebdf66e4835f0a (diff)
sunrpc: Add a sysfs file for adding a new xprt
Writing to this file will clone the 'main' xprt of an xprt_switch and add it to be used as an additional connection. -- Reviewed-by: Benjamin Coddington <bcodding@redhat.com> Signed-off-by: Anna Schumaker <anna.schumaker@oracle.com> v3: Replace call to xprt_iter_get_xprt() with xprt_iter_get_next() Link: https://lore.kernel.org/r/20250207204225.594002-5-anna@kernel.org Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Diffstat (limited to 'include/linux/sunrpc/xprtmultipath.h')
-rw-r--r--include/linux/sunrpc/xprtmultipath.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/sunrpc/xprtmultipath.h b/include/linux/sunrpc/xprtmultipath.h
index e411368cdacf..e4db5022fe92 100644
--- a/include/linux/sunrpc/xprtmultipath.h
+++ b/include/linux/sunrpc/xprtmultipath.h
@@ -56,6 +56,7 @@ extern void rpc_xprt_switch_add_xprt(struct rpc_xprt_switch *xps,
struct rpc_xprt *xprt);
extern void rpc_xprt_switch_remove_xprt(struct rpc_xprt_switch *xps,
struct rpc_xprt *xprt, bool offline);
+extern struct rpc_xprt *rpc_xprt_switch_get_main_xprt(struct rpc_xprt_switch *xps);
extern void xprt_iter_init(struct rpc_xprt_iter *xpi,
struct rpc_xprt_switch *xps);