summaryrefslogtreecommitdiff
path: root/net/sunrpc/sysfs.h
diff options
context:
space:
mode:
authorOlga Kornievskaia <kolga@netapp.com>2021-06-08 22:59:18 +0300
committerTrond Myklebust <trond.myklebust@hammerspace.com>2021-07-08 21:03:23 +0300
commitd408ebe04ac58eb370e2d264e88edbab746adda6 (patch)
treea2dbc5142ddb7c39ad99e6b16937249448e4248f /net/sunrpc/sysfs.h
parent2a338a543163ad6b42f4732396249cea6d3a33c8 (diff)
downloadlinux-d408ebe04ac58eb370e2d264e88edbab746adda6.tar.xz
sunrpc: add add sysfs directory per xprt under each xprt_switch
Add individual transport directories under each transport switch group. For instance, for each nconnect=X connections there will be a transport directory. Naming conventions also identifies transport type -- xprt-<id>-<type> where type is udp, tcp, rdma, local, bc. Signed-off-by: Olga Kornievskaia <kolga@netapp.com> Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Diffstat (limited to 'net/sunrpc/sysfs.h')
-rw-r--r--net/sunrpc/sysfs.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/net/sunrpc/sysfs.h b/net/sunrpc/sysfs.h
index 760f0582aee5..ff10451de6fa 100644
--- a/net/sunrpc/sysfs.h
+++ b/net/sunrpc/sysfs.h
@@ -19,6 +19,11 @@ struct rpc_sysfs_xprt_switch {
struct rpc_xprt *xprt;
};
+struct rpc_sysfs_xprt {
+ struct kobject kobject;
+ struct rpc_xprt *xprt;
+};
+
int rpc_sysfs_init(void);
void rpc_sysfs_exit(void);
@@ -29,5 +34,8 @@ void rpc_sysfs_client_destroy(struct rpc_clnt *clnt);
void rpc_sysfs_xprt_switch_setup(struct rpc_xprt_switch *xprt_switch,
struct rpc_xprt *xprt, gfp_t gfp_flags);
void rpc_sysfs_xprt_switch_destroy(struct rpc_xprt_switch *xprt);
+void rpc_sysfs_xprt_setup(struct rpc_xprt_switch *xprt_switch,
+ struct rpc_xprt *xprt, gfp_t gfp_flags);
+void rpc_sysfs_xprt_destroy(struct rpc_xprt *xprt);
#endif