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
43 __u32 reserved;43 __u32 reserved;
44};44};
45 45
46enum hns_roce_cq_cap_flags {
47 HNS_ROCE_CQ_FLAG_RECORD_DB = 1 << 0,
48};
49
46struct hns_roce_ib_create_cq_resp {50struct 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
76enum 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
72struct hns_roce_ib_create_qp_resp {82struct hns_roce_ib_create_qp_resp {
73 __aligned_u64 cap_flags;83 __aligned_u64 cap_flags;
74};84};