summaryrefslogtreecommitdiffstats
path: root/include/uapi/rdma/ib_user_verbs.h
diff options
context:
space:
mode:
authorJason Gunthorpe <jgg@mellanox.com>2018-01-11 22:43:05 +0100
committerJason Gunthorpe <jgg@mellanox.com>2018-01-15 23:33:21 +0100
commitc966ea12c00515e70a976aec57d1a4334582c411 (patch)
treef5b4ebe3dd50b501f4d7ffadd7133ab74f3c1662 /include/uapi/rdma/ib_user_verbs.h
parentIB/core: Limit DMAC resolution to RoCE Connected QPs (diff)
downloadlinux-c966ea12c00515e70a976aec57d1a4334582c411.tar.xz
linux-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 'include/uapi/rdma/ib_user_verbs.h')
-rw-r--r--include/uapi/rdma/ib_user_verbs.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/uapi/rdma/ib_user_verbs.h b/include/uapi/rdma/ib_user_verbs.h
index 7e11bb8651b6..fd035641cf41 100644
--- a/include/uapi/rdma/ib_user_verbs.h
+++ b/include/uapi/rdma/ib_user_verbs.h
@@ -449,7 +449,7 @@ struct ib_uverbs_wc {
__u32 vendor_err;
__u32 byte_len;
union {
- __u32 imm_data;
+ __be32 imm_data;
__u32 invalidate_rkey;
} ex;
__u32 qp_num;
@@ -765,7 +765,7 @@ struct ib_uverbs_send_wr {
__u32 opcode;
__u32 send_flags;
union {
- __u32 imm_data;
+ __be32 imm_data;
__u32 invalidate_rkey;
} ex;
union {