[PATCH] RPC: extract socket logic common to both client and server

Clean-up: Move some code that is common to both RPC client- and server-side
 socket transports into its own source file, net/sunrpc/socklib.c.

 Test-plan:
 Compile kernel with CONFIG_NFS enabled.  Millions of fsx operations over
 UDP, client and server.  Connectathon over UDP.

 Version: Thu, 11 Aug 2005 16:03:09 -0400

 Signed-off-by: Chuck Lever <cel@netapp.com>
 Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
This commit is contained in:
Chuck Lever
2005-08-11 16:25:20 -04:00
committed by Trond Myklebust
parent 602f83273c
commit 094bb20b9f
6 changed files with 177 additions and 143 deletions

View File

@@ -548,9 +548,6 @@ svc_write_space(struct sock *sk)
/*
* Receive a datagram from a UDP socket.
*/
extern int
csum_partial_copy_to_xdr(struct xdr_buf *xdr, struct sk_buff *skb);
static int
svc_udp_recvfrom(struct svc_rqst *rqstp)
{