]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - net/sunrpc/xprtrdma/xprt_rdma.h
RPC/RDMA: adhere to protocol for unpadded client trailing write chunks.
[karo-tx-linux.git] / net / sunrpc / xprtrdma / xprt_rdma.h
index 2db2344d487e39b2769776c1cc3ea504a2226396..fde6499a53b2bc4efb590dddefa90f1af8cde2b7 100644 (file)
@@ -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
  */