diff options
author | Chuck Lever <chuck.lever@oracle.com> | 2015-06-04 11:21:10 -0400 |
---|---|---|
committer | J. Bruce Fields <bfields@redhat.com> | 2015-06-04 16:55:59 -0400 |
commit | 30b7e246a6222f1fbad39b1451273375306fe1e2 (patch) | |
tree | f53c5110827f9b16c3e8e0c56eae5f653fc03eaf /net/sunrpc/xprtrdma/svc_rdma_transport.c | |
parent | 70747c25a701b563a54c20c4a77efe8292aad151 (diff) | |
download | op-kernel-dev-30b7e246a6222f1fbad39b1451273375306fe1e2.zip op-kernel-dev-30b7e246a6222f1fbad39b1451273375306fe1e2.tar.gz |
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.c | 2 |
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 f609c1c..be08493 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; |