diff options
author | Chuck Lever <chuck.lever@oracle.com> | 2017-04-09 20:06:33 +0300 |
---|---|---|
committer | J. Bruce Fields <bfields@redhat.com> | 2017-04-26 00:25:55 +0300 |
commit | 6b19cc5ca2f78ebc88f5d39ba6a94197bb392fcc (patch) | |
tree | b3b87f0c81009a04a8a31eb8a9090e41739bf8e1 /include/linux/sunrpc/rpc_rdma.h | |
parent | 9a6a180b7867ceceeeab88a6f011bac23174b939 (diff) | |
download | linux-6b19cc5ca2f78ebc88f5d39ba6a94197bb392fcc.tar.xz |
svcrdma: Clean up RDMA_ERROR path
Now that svc_rdma_sendto has been renovated, svc_rdma_send_error can
be refactored to reduce code duplication and remove C structure-
based XDR encoding. It is also relocated to the source file that
contains its only caller.
This is a refactoring change only.
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Diffstat (limited to 'include/linux/sunrpc/rpc_rdma.h')
-rw-r--r-- | include/linux/sunrpc/rpc_rdma.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/sunrpc/rpc_rdma.h b/include/linux/sunrpc/rpc_rdma.h index 245fc59b7324..b7e85b341a54 100644 --- a/include/linux/sunrpc/rpc_rdma.h +++ b/include/linux/sunrpc/rpc_rdma.h @@ -143,6 +143,9 @@ enum rpcrdma_proc { #define rdma_done cpu_to_be32(RDMA_DONE) #define rdma_error cpu_to_be32(RDMA_ERROR) +#define err_vers cpu_to_be32(ERR_VERS) +#define err_chunk cpu_to_be32(ERR_CHUNK) + /* * Private extension to RPC-over-RDMA Version One. * Message passed during RDMA-CM connection set-up. |