imm_data is copied directly from the ib_send_wr and ib_wc which have it marked as __be32, copy that mark into the uapi structures as well.
Showing the changes to include/uapi (1 of 1 file). Show all
Unified · Split
| @@ -222,7 +222,7 @@ struct pvrdma_sq_wqe_hdr { · 221 unmodified lines | ||
| 222 | 222 | __u32 opcode; /* operation type */ |
| 223 | 223 | __u32 send_flags; /* wr flags */ |
| 224 | 224 | union { |
| 225 | − __u32 imm_data; | |
| 225 | + __be32 imm_data; | |
| 226 | 226 | __u32 invalidate_rkey; |
| 227 | 227 | } ex; |
| 228 | 228 | __u32 reserved; |
| @@ -273,7 +273,7 @@ struct pvrdma_cqe { · 44 unmodified lines | ||
| 273 | 273 | __u32 opcode; |
| 274 | 274 | __u32 status; |
| 275 | 275 | __u32 byte_len; |
| 276 | − __u32 imm_data; | |
| 276 | + __be32 imm_data; | |
| 277 | 277 | __u32 src_qp; |
| 278 | 278 | __u32 wc_flags; |
| 279 | 279 | __u32 vendor_err; |