[PATCH] RPC: rationalize set_buffer_size
In fact, ->set_buffer_size should be completely functionless for non-UDP. Test-plan: Check socket buffer size on UDP sockets over time. Signed-off-by: Chuck Lever <cel@netapp.com> Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
This commit is contained in:
committed by
Trond Myklebust
parent
03bf4b707e
commit
470056c288
@@ -517,14 +517,8 @@ void
|
||||
rpc_setbufsize(struct rpc_clnt *clnt, unsigned int sndsize, unsigned int rcvsize)
|
||||
{
|
||||
struct rpc_xprt *xprt = clnt->cl_xprt;
|
||||
|
||||
xprt->sndsize = 0;
|
||||
if (sndsize)
|
||||
xprt->sndsize = sndsize + RPC_SLACK_SPACE;
|
||||
xprt->rcvsize = 0;
|
||||
if (rcvsize)
|
||||
xprt->rcvsize = rcvsize + RPC_SLACK_SPACE;
|
||||
xprt->ops->set_buffer_size(xprt);
|
||||
if (xprt->ops->set_buffer_size)
|
||||
xprt->ops->set_buffer_size(xprt, sndsize, rcvsize);
|
||||
}
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user