summaryrefslogtreecommitdiffstats
path: root/include/linux/sunrpc/debug.h
diff options
context:
space:
mode:
authorTom Tucker2007-12-31 04:07:15 +0100
committerJ. Bruce Fields2008-02-01 22:42:07 +0100
commit1d8206b97a09e7ff2fbef17d8d1ea008d764eeaa (patch)
tree0975483e82fab57c25fdbb19a9946985659a8ca2 /include/linux/sunrpc/debug.h
parentsvcrpc: ensure gss DESTROY tokens free contexts from cache (diff)
downloadkernel-qcow2-linux-1d8206b97a09e7ff2fbef17d8d1ea008d764eeaa.tar.gz
kernel-qcow2-linux-1d8206b97a09e7ff2fbef17d8d1ea008d764eeaa.tar.xz
kernel-qcow2-linux-1d8206b97a09e7ff2fbef17d8d1ea008d764eeaa.zip
svc: Add an svc transport class
The transport class (svc_xprt_class) represents a type of transport, e.g. udp, tcp, rdma. A transport class has a unique name and a set of transport operations kept in the svc_xprt_ops structure. A transport class can be dynamically registered and unregisterd. The svc_xprt_class represents the module that implements the transport type and keeps reference counts on the module to avoid unloading while there are active users. The endpoint (svc_xprt) is a generic, transport independent endpoint that can be used to send and receive data for an RPC service. It inherits it's operations from the transport class. A transport driver module registers and unregisters itself with svc sunrpc by calling svc_reg_xprt_class, and svc_unreg_xprt_class respectively. Signed-off-by: Tom Tucker <tom@opengridcomputing.com> Acked-by: Neil Brown <neilb@suse.de> Reviewed-by: Chuck Lever <chuck.lever@oracle.com> Reviewed-by: Greg Banks <gnb@sgi.com> Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
Diffstat (limited to 'include/linux/sunrpc/debug.h')
-rw-r--r--include/linux/sunrpc/debug.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/sunrpc/debug.h b/include/linux/sunrpc/debug.h
index 3912cf16361e..092fcfa9ceb9 100644
--- a/include/linux/sunrpc/debug.h
+++ b/include/linux/sunrpc/debug.h
@@ -21,6 +21,7 @@
#define RPCDBG_SCHED 0x0040
#define RPCDBG_TRANS 0x0080
#define RPCDBG_SVCSOCK 0x0100
+#define RPCDBG_SVCXPRT 0x0100
#define RPCDBG_SVCDSP 0x0200
#define RPCDBG_MISC 0x0400
#define RPCDBG_CACHE 0x0800