summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorOlga Kornievskaia <kolga@netapp.com>2021-06-08 15:59:15 -0400
committerTrond Myklebust <trond.myklebust@hammerspace.com>2021-07-08 14:03:23 -0400
commitd3abc73987fd2a5992a9bdae9f44fa43d1b4db70 (patch)
tree627d8490ed9f2e0ec16b1ebe6f7926eacb10e3d6 /include/linux
parent5b9268727f299f87432e8b035e9e8bec8ba13e8d (diff)
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/linux')
-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)