aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/sw/rxe
diff options
context:
space:
mode:
authorJason Gunthorpe <jgg@mellanox.com>2018-01-11 14:43:05 -0700
committerJason Gunthorpe <jgg@mellanox.com>2018-01-15 15:33:21 -0700
commitc966ea12c00515e70a976aec57d1a4334582c411 (patch)
treef5b4ebe3dd50b501f4d7ffadd7133ab74f3c1662 /drivers/infiniband/sw/rxe
parentIB/core: Limit DMAC resolution to RoCE Connected QPs (diff)
downloadlinux-dev-c966ea12c00515e70a976aec57d1a4334582c411.tar.xz
linux-dev-c966ea12c00515e70a976aec57d1a4334582c411.zip
RDMA: Mark imm_data as be32 in the verbs uapi header
This matches what the userspace copy of this header has been doing for a while. imm_data is an opaque 4 byte array carried over the network, and invalidate_rkey is in CPU byte order. Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Diffstat (limited to 'drivers/infiniband/sw/rxe')
-rw-r--r--drivers/infiniband/sw/rxe/rxe_resp.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/infiniband/sw/rxe/rxe_resp.c b/drivers/infiniband/sw/rxe/rxe_resp.c
index 4240866a5331..f07324f2cde2 100644
--- a/drivers/infiniband/sw/rxe/rxe_resp.c
+++ b/drivers/infiniband/sw/rxe/rxe_resp.c
@@ -863,8 +863,7 @@ static enum resp_states do_complete(struct rxe_qp *qp,
if (pkt->mask & RXE_IMMDT_MASK) {
uwc->wc_flags |= IB_WC_WITH_IMM;
- uwc->ex.imm_data =
- (__u32 __force)immdt_imm(pkt);
+ uwc->ex.imm_data = immdt_imm(pkt);
}
if (pkt->mask & RXE_IETH_MASK) {