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.
Showing the changes to include/uapi (1 of 5 files). Show all
Unified · Split
| @@ -109,6 +109,12 @@ struct hns_roce_ib_create_qp_resp { · 108 unmodified lines | ||
| 109 | 109 | __aligned_u64 dwqe_mmap_key; |
| 110 | 110 | }; |
| 111 | 111 | |
| 112 | +struct hns_roce_ib_modify_qp_resp { | |
| 113 | + __u8 tc_mode; | |
| 114 | + __u8 priority; | |
| 115 | + __u8 reserved[6]; | |
| 116 | +}; | |
| 117 | + | |
| 112 | 118 | enum { |
| 113 | 119 | HNS_ROCE_EXSGE_FLAGS = 1 << 0, |
| 114 | 120 | HNS_ROCE_RQ_INLINE_FLAGS = 1 << 1, |
| @@ -143,7 +149,8 @@ struct hns_roce_ib_alloc_pd_resp { · 28 unmodified lines | ||
| 143 | 149 | |
| 144 | 150 | struct hns_roce_ib_create_ah_resp { |
| 145 | 151 | __u8 dmac[6]; |
| 146 | − __u8 reserved[2]; | |
| 152 | + __u8 priority; | |
| 153 | + __u8 tc_mode; | |
| 147 | 154 | }; |
| 148 | 155 | |
| 149 | 156 | #endif /* HNS_ABI_USER_H */ |