These flags will be returned to the userspace through ABI, so they should be defined in hns-abi.h. Furthermore, there is no need to include hns-abi.h in every source files, it just needs to be included in the common header file.
Showing the changes to include/uapi (1 of 7 files). Show all
Unified · Split
| @@ -43,6 +43,10 @@ struct hns_roce_ib_create_cq { · 42 unmodified lines | |||
| 43 | __u32 reserved; | 43 | __u32 reserved; |
| 44 | }; | 44 | }; |
| 45 | 45 | ||
| 46 | enum hns_roce_cq_cap_flags { | ||
| 47 | HNS_ROCE_CQ_FLAG_RECORD_DB = 1 << 0, | ||
| 48 | }; | ||
| 49 | |||
| 46 | struct hns_roce_ib_create_cq_resp { | 50 | struct hns_roce_ib_create_cq_resp { |
| 47 | __aligned_u64 cqn; /* Only 32 bits used, 64 for compat */ | 51 | __aligned_u64 cqn; /* Only 32 bits used, 64 for compat */ |
| 48 | __aligned_u64 cap_flags; | 52 | __aligned_u64 cap_flags; |
| @@ -69,6 +73,12 @@ struct hns_roce_ib_create_qp { · 20 unmodified lines | |||
| 69 | __aligned_u64 sdb_addr; | 73 | __aligned_u64 sdb_addr; |
| 70 | }; | 74 | }; |
| 71 | 75 | ||
| 76 | enum hns_roce_qp_cap_flags { | ||
| 77 | HNS_ROCE_QP_CAP_RQ_RECORD_DB = 1 << 0, | ||
| 78 | HNS_ROCE_QP_CAP_SQ_RECORD_DB = 1 << 1, | ||
| 79 | HNS_ROCE_QP_CAP_OWNER_DB = 1 << 2, | ||
| 80 | }; | ||
| 81 | |||
| 72 | struct hns_roce_ib_create_qp_resp { | 82 | struct hns_roce_ib_create_qp_resp { |
| 73 | __aligned_u64 cap_flags; | 83 | __aligned_u64 cap_flags; |
| 74 | }; | 84 | }; |