summaryrefslogtreecommitdiffstats
path: root/include/linux/sunrpc/svc_xprt.h
diff options
context:
space:
mode:
authorTom Tucker2007-12-31 04:07:29 +0100
committerJ. Bruce Fields2008-02-01 22:42:08 +0100
commite831fe65b10199e1e301a7316c66d6ced133712d (patch)
tree33436ef94e099e854c4824e78cd62f341e5f357a /include/linux/sunrpc/svc_xprt.h
parentsvc: Add per-transport delete functions (diff)
downloadkernel-qcow2-linux-e831fe65b10199e1e301a7316c66d6ced133712d.tar.gz
kernel-qcow2-linux-e831fe65b10199e1e301a7316c66d6ced133712d.tar.xz
kernel-qcow2-linux-e831fe65b10199e1e301a7316c66d6ced133712d.zip
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 'include/linux/sunrpc/svc_xprt.h')
-rw-r--r--include/linux/sunrpc/svc_xprt.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/sunrpc/svc_xprt.h b/include/linux/sunrpc/svc_xprt.h
index f032fb6b32e9..199cfcb9860b 100644
--- a/include/linux/sunrpc/svc_xprt.h
+++ b/include/linux/sunrpc/svc_xprt.h
@@ -11,6 +11,7 @@
struct svc_xprt_ops {
int (*xpo_recvfrom)(struct svc_rqst *);
+ void (*xpo_prep_reply_hdr)(struct svc_rqst *);
int (*xpo_sendto)(struct svc_rqst *);
void (*xpo_release_rqst)(struct svc_rqst *);
void (*xpo_detach)(struct svc_xprt *);