summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorOlga Kornievskaia <kolga@netapp.com>2021-06-08 21:59:15 +0200
committerTrond Myklebust <trond.myklebust@hammerspace.com>2021-07-08 20:03:23 +0200
commitd3abc73987fd2a5992a9bdae9f44fa43d1b4db70 (patch)
tree627d8490ed9f2e0ec16b1ebe6f7926eacb10e3d6 /include
parentsunrpc: add IDs to multipath (diff)
downloadlinux-d3abc73987fd2a5992a9bdae9f44fa43d1b4db70.tar.xz
linux-d3abc73987fd2a5992a9bdae9f44fa43d1b4db70.zip
sunrpc: keep track of the xprt_class in rpc_xprt structure
We need to keep track of the type for a given transport. 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/xprt.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/sunrpc/xprt.h b/include/linux/sunrpc/xprt.h
index 1fbc470ce205..7efc6c0a5455 100644
--- a/include/linux/sunrpc/xprt.h
+++ b/include/linux/sunrpc/xprt.h
@@ -53,6 +53,7 @@ enum rpc_display_format_t {
struct rpc_task;
struct rpc_xprt;
+struct xprt_class;
struct seq_file;
struct svc_serv;
struct net;
@@ -289,6 +290,7 @@ struct rpc_xprt {
atomic_t inject_disconnect;
#endif
struct rcu_head rcu;
+ const struct xprt_class *xprt_class;
};
#if defined(CONFIG_SUNRPC_BACKCHANNEL)