summaryrefslogtreecommitdiffstats
path: root/net/sunrpc/xprtrdma/svc_rdma_transport.c
diff options
context:
space:
mode:
authorChuck Lever <chuck.lever@oracle.com>2015-06-04 11:21:10 -0400
committerJ. Bruce Fields <bfields@redhat.com>2015-06-04 16:55:59 -0400
commit30b7e246a6222f1fbad39b1451273375306fe1e2 (patch)
treef53c5110827f9b16c3e8e0c56eae5f653fc03eaf /net/sunrpc/xprtrdma/svc_rdma_transport.c
parent70747c25a701b563a54c20c4a77efe8292aad151 (diff)
downloadblackbird-op-linux-30b7e246a6222f1fbad39b1451273375306fe1e2.tar.gz
blackbird-op-linux-30b7e246a6222f1fbad39b1451273375306fe1e2.zip
svcrdma: Keep rpcrdma_msg fields in network byte-order
Fields in struct rpcrdma_msg are __be32. Don't byte-swap these fields when decoding RPC calls and then swap them back for the reply. For the most part, they can be left alone. Signed-off-by: Chuck Lever <chuck.lever@oracle.com> Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Diffstat (limited to 'net/sunrpc/xprtrdma/svc_rdma_transport.c')
-rw-r--r--net/sunrpc/xprtrdma/svc_rdma_transport.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/sunrpc/xprtrdma/svc_rdma_transport.c b/net/sunrpc/xprtrdma/svc_rdma_transport.c
index f609c1c2d38d..be084938e3ff 100644
--- a/net/sunrpc/xprtrdma/svc_rdma_transport.c
+++ b/net/sunrpc/xprtrdma/svc_rdma_transport.c
@@ -1319,7 +1319,7 @@ void svc_rdma_send_error(struct svcxprt_rdma *xprt, struct rpcrdma_msg *rmsgp,
struct ib_send_wr err_wr;
struct page *p;
struct svc_rdma_op_ctxt *ctxt;
- u32 *va;
+ __be32 *va;
int length;
int ret;
OpenPOWER on IntegriCloud