diff options
author | Tom Tucker <tom@opengridcomputing.com> | 2007-12-30 22:07:17 -0500 |
---|---|---|
committer | J. Bruce Fields <bfields@citi.umich.edu> | 2008-02-01 16:42:07 -0500 |
commit | 360d873864c8903a650b227758b49dd50e6ecc9f (patch) | |
tree | 806631491e4848b194abd539293f124b366a49de /include/linux/sunrpc/svcsock.h | |
parent | 1d8206b97a09e7ff2fbef17d8d1ea008d764eeaa (diff) |
svc: Make svc_sock the tcp/udp transport
Make TCP and UDP svc_sock transports, and register them
with the svc transport core.
A transport type (svc_sock) has an svc_xprt as its first member,
and calls svc_xprt_init to initialize this field.
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/svcsock.h')
-rw-r--r-- | include/linux/sunrpc/svcsock.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/sunrpc/svcsock.h b/include/linux/sunrpc/svcsock.h index a53e0fa855d2..1878cbe1aa4f 100644 --- a/include/linux/sunrpc/svcsock.h +++ b/include/linux/sunrpc/svcsock.h | |||
@@ -10,11 +10,13 @@ | |||
10 | #define SUNRPC_SVCSOCK_H | 10 | #define SUNRPC_SVCSOCK_H |
11 | 11 | ||
12 | #include <linux/sunrpc/svc.h> | 12 | #include <linux/sunrpc/svc.h> |
13 | #include <linux/sunrpc/svc_xprt.h> | ||
13 | 14 | ||
14 | /* | 15 | /* |
15 | * RPC server socket. | 16 | * RPC server socket. |
16 | */ | 17 | */ |
17 | struct svc_sock { | 18 | struct svc_sock { |
19 | struct svc_xprt sk_xprt; | ||
18 | struct list_head sk_ready; /* list of ready sockets */ | 20 | struct list_head sk_ready; /* list of ready sockets */ |
19 | struct list_head sk_list; /* list of all sockets */ | 21 | struct list_head sk_list; /* list of all sockets */ |
20 | struct socket * sk_sock; /* berkeley socket layer */ | 22 | struct socket * sk_sock; /* berkeley socket layer */ |
@@ -78,6 +80,8 @@ int svc_addsock(struct svc_serv *serv, | |||
78 | int fd, | 80 | int fd, |
79 | char *name_return, | 81 | char *name_return, |
80 | int *proto); | 82 | int *proto); |
83 | void svc_init_xprt_sock(void); | ||
84 | void svc_cleanup_xprt_sock(void); | ||
81 | 85 | ||
82 | /* | 86 | /* |
83 | * svc_makesock socket characteristics | 87 | * svc_makesock socket characteristics |