aboutsummaryrefslogtreecommitdiffstats
path: root/net/sunrpc/sunrpc_syms.c
diff options
context:
space:
mode:
authorTom Tucker <tom@opengridcomputing.com>2007-12-30 22:07:17 -0500
committerJ. Bruce Fields <bfields@citi.umich.edu>2008-02-01 16:42:07 -0500
commit360d873864c8903a650b227758b49dd50e6ecc9f (patch)
tree806631491e4848b194abd539293f124b366a49de /net/sunrpc/sunrpc_syms.c
parent1d8206b97a09e7ff2fbef17d8d1ea008d764eeaa (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 'net/sunrpc/sunrpc_syms.c')
-rw-r--r--net/sunrpc/sunrpc_syms.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/net/sunrpc/sunrpc_syms.c b/net/sunrpc/sunrpc_syms.c
index ef7dc78e2c7b..11b309817b8f 100644
--- a/net/sunrpc/sunrpc_syms.c
+++ b/net/sunrpc/sunrpc_syms.c
@@ -85,7 +85,8 @@ init_sunrpc(void)
85#endif 85#endif
86 cache_register(&ip_map_cache); 86 cache_register(&ip_map_cache);
87 cache_register(&unix_gid_cache); 87 cache_register(&unix_gid_cache);
88 init_socket_xprt(); 88 svc_init_xprt_sock(); /* svc sock transport */
89 init_socket_xprt(); /* clnt sock transport */
89 rpcauth_init_module(); 90 rpcauth_init_module();
90out: 91out:
91 return err; 92 return err;
@@ -96,6 +97,7 @@ cleanup_sunrpc(void)
96{ 97{
97 rpcauth_remove_module(); 98 rpcauth_remove_module();
98 cleanup_socket_xprt(); 99 cleanup_socket_xprt();
100 svc_cleanup_xprt_sock();
99 unregister_rpc_pipefs(); 101 unregister_rpc_pipefs();
100 rpc_destroy_mempool(); 102 rpc_destroy_mempool();
101 cache_unregister(&ip_map_cache); 103 cache_unregister(&ip_map_cache);