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.
Showing the changes to include/uapi (1 of 4 files). Show all
Unified · Split
| @@ -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 { |