History

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.

Jason Gunthorpe committed 8 years ago

Commit c966ea11 parent a6753c44 files · +5 −7Browse files

Showing the changes to include/uapi (1 of 4 files). Show all

Unified · Split

include/uapi/rdma/ib_user_verbs.h+2−2
@@ -449,7 +449,7 @@ struct ib_uverbs_wc { · 448 unmodified lines
449 __u32 vendor_err;449 __u32 vendor_err;
450 __u32 byte_len;450 __u32 byte_len;
451 union {451 union {
452 __u32 imm_data;452 __be32 imm_data;
453 __u32 invalidate_rkey;453 __u32 invalidate_rkey;
454 } ex;454 } ex;
455 __u32 qp_num;455 __u32 qp_num;
@@ -765,7 +765,7 @@ struct ib_uverbs_send_wr { · 309 unmodified lines
765 __u32 opcode;765 __u32 opcode;
766 __u32 send_flags;766 __u32 send_flags;
767 union {767 union {
768 __u32 imm_data;768 __be32 imm_data;
769 __u32 invalidate_rkey;769 __u32 invalidate_rkey;
770 } ex;770 } ex;
771 union {771 union {

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t