aboutsummaryrefslogtreecommitdiffstats
path: root/net/sunrpc/svc.c
diff options
context:
space:
mode:
authorTom Tucker <tom@opengridcomputing.com>2007-12-30 22:07:29 -0500
committerJ. Bruce Fields <bfields@citi.umich.edu>2008-02-01 16:42:08 -0500
commite831fe65b10199e1e301a7316c66d6ced133712d (patch)
tree33436ef94e099e854c4824e78cd62f341e5f357a /net/sunrpc/svc.c
parent755cceaba7555027e61dfa79f1e55bdfc6906633 (diff)
svc: Add xpo_prep_reply_hdr
Some transports add fields to the RPC header for replies, e.g. the TCP record length. This function is called when preparing the reply header to allow each transport to add whatever fields it requires. 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/svc.c')
-rw-r--r--net/sunrpc/svc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/net/sunrpc/svc.c b/net/sunrpc/svc.c
index 94eed9b80038..8281a0402652 100644
--- a/net/sunrpc/svc.c
+++ b/net/sunrpc/svc.c
@@ -840,9 +840,9 @@ svc_process(struct svc_rqst *rqstp)
840 rqstp->rq_res.tail[0].iov_len = 0; 840 rqstp->rq_res.tail[0].iov_len = 0;
841 /* Will be turned off only in gss privacy case: */ 841 /* Will be turned off only in gss privacy case: */
842 rqstp->rq_splice_ok = 1; 842 rqstp->rq_splice_ok = 1;
843 /* tcp needs a space for the record length... */ 843
844 if (rqstp->rq_prot == IPPROTO_TCP) 844 /* Setup reply header */
845 svc_putnl(resv, 0); 845 rqstp->rq_xprt->xpt_ops->xpo_prep_reply_hdr(rqstp);
846 846
847 rqstp->rq_xid = svc_getu32(argv); 847 rqstp->rq_xid = svc_getu32(argv);
848 svc_putu32(resv, rqstp->rq_xid); 848 svc_putu32(resv, rqstp->rq_xid);