This patch changes the type of cqn from u32 to u64 to keep userspace and kernel consistent, initializes resp both for cq and qp to zeros, and also changes the condition judgment of outlen considering future caps extension.
Showing the changes to include/uapi (1 of 3 files). Show all
Unified · Split
| @@ -42,8 +42,7 @@ struct hns_roce_ib_create_cq { · 41 unmodified lines | ||
| 42 | 42 | }; |
| 43 | 43 | |
| 44 | 44 | struct hns_roce_ib_create_cq_resp { |
| 45 | − __u32 cqn; | |
| 46 | − __u32 reserved; | |
| 45 | + __u64 cqn; /* Only 32 bits used, 64 for compat */ | |
| 47 | 46 | __u64 cap_flags; |
| 48 | 47 | }; |
| 49 | 48 | |