History

RDMA/hns: Move capability flags of QP and CQ to hns-abi.h

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.

Weihang Li committed 5 years ago

Commit 53ef4991 parent 2988ca07 files · +11 −15Browse files

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

Unified · Split

include/uapi/rdma/hns-abi.h+10−0
@@ -43,6 +43,10 @@ struct hns_roce_ib_create_cq { · 42 unmodified lines
4343 __u32 reserved;
4444 };
4545
46+enum hns_roce_cq_cap_flags {
47+ HNS_ROCE_CQ_FLAG_RECORD_DB = 1 << 0,
48+};
49+
4650 struct hns_roce_ib_create_cq_resp {
4751 __aligned_u64 cqn; /* Only 32 bits used, 64 for compat */
4852 __aligned_u64 cap_flags;
@@ -69,6 +73,12 @@ struct hns_roce_ib_create_qp { · 20 unmodified lines
6973 __aligned_u64 sdb_addr;
7074 };
7175
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+
7282 struct hns_roce_ib_create_qp_resp {
7383 __aligned_u64 cap_flags;
7484 };