diff options
author | Chuck Lever <chuck.lever@oracle.com> | 2015-01-21 11:02:29 -0500 |
---|---|---|
committer | Anna Schumaker <Anna.Schumaker@Netapp.com> | 2015-01-30 10:47:48 -0500 |
commit | f2846481b4bf758cf7c3fe8f24b35950306f1db2 (patch) | |
tree | e0d5e559cbcef05e8893a7966693bb89f89c251f /include/linux/sunrpc | |
parent | 052151a9798ef7a79372fdc688018dc405a6063c (diff) |
xprtrdma: Clean up hdrlen
Clean up: Replace naked integers with a documenting macro.
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Reviewed-by: Steve Wise <swise@opengridcomputing.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
Diffstat (limited to 'include/linux/sunrpc')
-rw-r--r-- | include/linux/sunrpc/rpc_rdma.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/include/linux/sunrpc/rpc_rdma.h b/include/linux/sunrpc/rpc_rdma.h index 1578ed241c19..f33c5a4d6fe4 100644 --- a/include/linux/sunrpc/rpc_rdma.h +++ b/include/linux/sunrpc/rpc_rdma.h | |||
@@ -98,7 +98,10 @@ struct rpcrdma_msg { | |||
98 | } rm_body; | 98 | } rm_body; |
99 | }; | 99 | }; |
100 | 100 | ||
101 | #define RPCRDMA_HDRLEN_MIN 28 | 101 | /* |
102 | * Smallest RPC/RDMA header: rm_xid through rm_type, then rm_nochunks | ||
103 | */ | ||
104 | #define RPCRDMA_HDRLEN_MIN (sizeof(__be32) * 7) | ||
102 | 105 | ||
103 | enum rpcrdma_errcode { | 106 | enum rpcrdma_errcode { |
104 | ERR_VERS = 1, | 107 | ERR_VERS = 1, |