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
109 __aligned_u64 dwqe_mmap_key;109 __aligned_u64 dwqe_mmap_key;
110};110};
111 111
112struct hns_roce_ib_modify_qp_resp {
113 __u8 tc_mode;
114 __u8 priority;
115 __u8 reserved[6];
116};
117
112enum {118enum {
113 HNS_ROCE_EXSGE_FLAGS = 1 << 0,119 HNS_ROCE_EXSGE_FLAGS = 1 << 0,
114 HNS_ROCE_RQ_INLINE_FLAGS = 1 << 1,120 HNS_ROCE_RQ_INLINE_FLAGS = 1 << 1,
@@ -143,7 +149,8 @@ struct hns_roce_ib_alloc_pd_resp { · 28 unmodified lines
143 149
144struct hns_roce_ib_create_ah_resp {150struct hns_roce_ib_create_ah_resp {
145 __u8 dmac[6];151 __u8 dmac[6];
146 __u8 reserved[2];152 __u8 priority;
153 __u8 tc_mode;
147};154};
148 155
149#endif /* HNS_ABI_USER_H */156#endif /* HNS_ABI_USER_H */