aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/sunrpc
diff options
context:
space:
mode:
authorChuck Lever <chuck.lever@oracle.com>2006-08-22 20:06:21 -0400
committerTrond Myklebust <Trond.Myklebust@netapp.com>2006-09-22 23:24:51 -0400
commitff9aa5e56df60cc8565a93cc868fe25ae3f20e49 (patch)
treeae1045652699feacd18aecbc7023edd430c2695e /include/linux/sunrpc
parent9e1968c58d72c4b85d8a69bda1e194f9701fb224 (diff)
SUNRPC: Eliminate xprt_create_proto and rpc_create_client
The two function call API for creating a new RPC client is now obsolete. Remove it. Also, remove an unnecessary check to see whether the caller is capable of using privileged network services. The kernel RPC client always uses a privileged ephemeral port by default; callers are responsible for checking the authority of users to make use of any RPC service, or for specifying that a nonprivileged port is acceptable. Test plan: Repeated runs of Connectathon locking suite. Check network trace to ensure correctness of NLM requests and replies. Signed-off-by: Chuck Lever <chuck.lever@oracle.com> Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'include/linux/sunrpc')
-rw-r--r--include/linux/sunrpc/clnt.h7
-rw-r--r--include/linux/sunrpc/xprt.h1
2 files changed, 0 insertions, 8 deletions
diff --git a/include/linux/sunrpc/clnt.h b/include/linux/sunrpc/clnt.h
index 7817ba82f1b2..f6d1d646ce05 100644
--- a/include/linux/sunrpc/clnt.h
+++ b/include/linux/sunrpc/clnt.h
@@ -91,13 +91,6 @@ struct rpc_procinfo {
91 91
92#ifdef __KERNEL__ 92#ifdef __KERNEL__
93 93
94struct rpc_clnt *rpc_create_client(struct rpc_xprt *xprt, char *servname,
95 struct rpc_program *info,
96 u32 version, rpc_authflavor_t authflavor);
97struct rpc_clnt *rpc_new_client(struct rpc_xprt *xprt, char *servname,
98 struct rpc_program *info,
99 u32 version, rpc_authflavor_t authflavor);
100
101struct rpc_create_args { 94struct rpc_create_args {
102 int protocol; 95 int protocol;
103 struct sockaddr *address; 96 struct sockaddr *address;
diff --git a/include/linux/sunrpc/xprt.h b/include/linux/sunrpc/xprt.h
index bc80fcfdd892..de4efea7c856 100644
--- a/include/linux/sunrpc/xprt.h
+++ b/include/linux/sunrpc/xprt.h
@@ -231,7 +231,6 @@ struct rpc_xprt {
231/* 231/*
232 * Transport operations used by ULPs 232 * Transport operations used by ULPs
233 */ 233 */
234struct rpc_xprt * xprt_create_proto(int proto, struct sockaddr_in *addr, struct rpc_timeout *to);
235void xprt_set_timeout(struct rpc_timeout *to, unsigned int retr, unsigned long incr); 234void xprt_set_timeout(struct rpc_timeout *to, unsigned int retr, unsigned long incr);
236 235
237/* 236/*