History

RDMA/hns: Support DSCP

Add support for DSCP configuration. For DSCP, get dscp-prio mapping via hns3 nic driver api .get_dscp_prio() and fill the SL (in WQE for UD or in QPC for RC) with the priority value. The prio-tc mapping is configured to HW by hns3 nic driver. HW will select a corresponding TC according to SL and the prio-tc mapping.

Junxian Huang committed 2 years ago

Commit ee20cc11 parent 2ca7e935 files · +116 −30Browse files

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

Unified · Split

include/uapi/rdma/hns-abi.h+8−1
@@ -109,6 +109,12 @@ struct hns_roce_ib_create_qp_resp { · 108 unmodified lines
109109 __aligned_u64 dwqe_mmap_key;
110110 };
111111
112+struct hns_roce_ib_modify_qp_resp {
113+ __u8 tc_mode;
114+ __u8 priority;
115+ __u8 reserved[6];
116+};
117+
112118 enum {
113119 HNS_ROCE_EXSGE_FLAGS = 1 << 0,
114120 HNS_ROCE_RQ_INLINE_FLAGS = 1 << 1,
@@ -143,7 +149,8 @@ struct hns_roce_ib_alloc_pd_resp { · 28 unmodified lines
143149
144150 struct hns_roce_ib_create_ah_resp {
145151 __u8 dmac[6];
146− __u8 reserved[2];
152+ __u8 priority;
153+ __u8 tc_mode;
147154 };
148155
149156 #endif /* HNS_ABI_USER_H */