]> www.infradead.org Git - users/jedix/linux-maple.git/commit
svcrdma: Keep rpcrdma_msg fields in network byte-order
authorChuck Lever <chuck.lever@oracle.com>
Mon, 31 Aug 2015 20:40:47 +0000 (14:40 -0600)
committerChuck Lever <chuck.lever@oracle.com>
Mon, 31 Aug 2015 20:40:47 +0000 (14:40 -0600)
commitb8975e02ccbbe9e11d19c03b71f1470a3a1762b9
treec500821ad9392a3057c6b4e6b12e28c1f3dc6320
parent6e2529bf767e0dc09f348f690b29d6a7e6e50497
svcrdma: Keep rpcrdma_msg fields in network byte-order

[ Upstream commit 30b7e246a6222f1fbad39b1451273375306fe1e2 ]

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>
include/linux/sunrpc/svc_rdma.h
net/sunrpc/xprtrdma/svc_rdma_marshal.c
net/sunrpc/xprtrdma/svc_rdma_recvfrom.c
net/sunrpc/xprtrdma/svc_rdma_transport.c