aboutsummaryrefslogtreecommitdiffstats
path: root/net/sunrpc/xprtrdma/xprt_rdma.h
diff options
context:
space:
mode:
authorTom Talpey <talpey@netapp.com>2008-10-09 15:01:11 -0400
committerTrond Myklebust <Trond.Myklebust@netapp.com>2008-10-10 15:12:33 -0400
commit9191ca3b381b15b9a88785a8ae2fa4db8e553b0c (patch)
tree7357b4009fefff106adab972f0572b3d4e105fa0 /net/sunrpc/xprtrdma/xprt_rdma.h
parentfee08caf943e8ed3446ce42fa085b5e7e5f08d92 (diff)
RPC/RDMA: adhere to protocol for unpadded client trailing write chunks.
The RPC/RDMA protocol allows clients and servers to avoid RDMA operations for data which is purely the result of XDR padding. On the client, automatically insert the necessary padding for such server replies, and optionally don't marshal such chunks. Signed-off-by: Tom Talpey <talpey@netapp.com> Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'net/sunrpc/xprtrdma/xprt_rdma.h')
-rw-r--r--net/sunrpc/xprtrdma/xprt_rdma.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/net/sunrpc/xprtrdma/xprt_rdma.h b/net/sunrpc/xprtrdma/xprt_rdma.h
index 2db2344d487e..fde6499a53b2 100644
--- a/net/sunrpc/xprtrdma/xprt_rdma.h
+++ b/net/sunrpc/xprtrdma/xprt_rdma.h
@@ -280,6 +280,11 @@ struct rpcrdma_xprt {
280#define rpcx_to_rdmax(x) container_of(x, struct rpcrdma_xprt, xprt) 280#define rpcx_to_rdmax(x) container_of(x, struct rpcrdma_xprt, xprt)
281#define rpcx_to_rdmad(x) (rpcx_to_rdmax(x)->rx_data) 281#define rpcx_to_rdmad(x) (rpcx_to_rdmax(x)->rx_data)
282 282
283/* Setting this to 0 ensures interoperability with early servers.
284 * Setting this to 1 enhances certain unaligned read/write performance.
285 * Default is 0, see sysctl entry and rpc_rdma.c rpcrdma_convert_iovs() */
286extern int xprt_rdma_pad_optimize;
287
283/* 288/*
284 * Interface Adapter calls - xprtrdma/verbs.c 289 * Interface Adapter calls - xprtrdma/verbs.c
285 */ 290 */