summaryrefslogtreecommitdiffstats
path: root/net/sunrpc/xprtrdma/xprt_rdma.h
diff options
context:
space:
mode:
authorTom Talpey2008-10-09 21:01:11 +0200
committerTrond Myklebust2008-10-10 21:12:33 +0200
commit9191ca3b381b15b9a88785a8ae2fa4db8e553b0c (patch)
tree7357b4009fefff106adab972f0572b3d4e105fa0 /net/sunrpc/xprtrdma/xprt_rdma.h
parentRPC/RDMA: avoid an oops due to disconnect racing with async upcalls. (diff)
downloadkernel-qcow2-linux-9191ca3b381b15b9a88785a8ae2fa4db8e553b0c.tar.gz
kernel-qcow2-linux-9191ca3b381b15b9a88785a8ae2fa4db8e553b0c.tar.xz
kernel-qcow2-linux-9191ca3b381b15b9a88785a8ae2fa4db8e553b0c.zip
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 {
#define rpcx_to_rdmax(x) container_of(x, struct rpcrdma_xprt, xprt)
#define rpcx_to_rdmad(x) (rpcx_to_rdmax(x)->rx_data)
+/* Setting this to 0 ensures interoperability with early servers.
+ * Setting this to 1 enhances certain unaligned read/write performance.
+ * Default is 0, see sysctl entry and rpc_rdma.c rpcrdma_convert_iovs() */
+extern int xprt_rdma_pad_optimize;
+
/*
* Interface Adapter calls - xprtrdma/verbs.c
*/