]> git.baikalelectronics.ru Git - kernel.git/commit
svcrdma: Keep rpcrdma_msg fields in network byte-order
authorChuck Lever <chuck.lever@oracle.com>
Thu, 4 Jun 2015 15:21:10 +0000 (11:21 -0400)
committerJ. Bruce Fields <bfields@redhat.com>
Thu, 4 Jun 2015 20:55:59 +0000 (16:55 -0400)
commit491bf9807fcb95395f4aeee703e8b2c41317f1b7
treef53c5110827f9b16c3e8e0c56eae5f653fc03eaf
parent49d25eaf535384b4babd8659d1a9987e560f1eda
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>
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