clnt.c (da35187801732397a7e05fb9e77f3700cc35f5db) | clnt.c (a246b0105bbd9a70a698f69baae2042996f2a0e9) |
---|---|
1/* 2 * linux/net/sunrpc/rpcclnt.c 3 * 4 * This file contains the high-level RPC interface. 5 * It is modeled as a finite state machine to support both synchronous 6 * and asynchronous requests. 7 * 8 * - RPC header generation and argument serialization. --- 511 unchanged lines hidden (view full) --- 520 struct rpc_xprt *xprt = clnt->cl_xprt; 521 522 xprt->sndsize = 0; 523 if (sndsize) 524 xprt->sndsize = sndsize + RPC_SLACK_SPACE; 525 xprt->rcvsize = 0; 526 if (rcvsize) 527 xprt->rcvsize = rcvsize + RPC_SLACK_SPACE; | 1/* 2 * linux/net/sunrpc/rpcclnt.c 3 * 4 * This file contains the high-level RPC interface. 5 * It is modeled as a finite state machine to support both synchronous 6 * and asynchronous requests. 7 * 8 * - RPC header generation and argument serialization. --- 511 unchanged lines hidden (view full) --- 520 struct rpc_xprt *xprt = clnt->cl_xprt; 521 522 xprt->sndsize = 0; 523 if (sndsize) 524 xprt->sndsize = sndsize + RPC_SLACK_SPACE; 525 xprt->rcvsize = 0; 526 if (rcvsize) 527 xprt->rcvsize = rcvsize + RPC_SLACK_SPACE; |
528 if (xprt_connected(xprt)) 529 xprt_sock_setbufsize(xprt); | 528 xprt->ops->set_buffer_size(xprt); |
530} 531 532/* 533 * Return size of largest payload RPC client can support, in bytes 534 * 535 * For stream transports, this is one RPC record fragment (see RFC 536 * 1831), as we don't support multi-record requests yet. For datagram 537 * transports, this is the size of an IP packet minus the IP, UDP, and --- 714 unchanged lines hidden --- | 529} 530 531/* 532 * Return size of largest payload RPC client can support, in bytes 533 * 534 * For stream transports, this is one RPC record fragment (see RFC 535 * 1831), as we don't support multi-record requests yet. For datagram 536 * transports, this is the size of an IP packet minus the IP, UDP, and --- 714 unchanged lines hidden --- |