diff options
author | Junxian Huang <huangjunxian6@hisilicon.com> | 2024-03-15 10:35:51 +0100 |
---|---|---|
committer | Leon Romanovsky <leon@kernel.org> | 2024-04-09 09:27:41 +0200 |
commit | ee20cc17e9d8fd85225e18351637460f3482be2f (patch) | |
tree | 76c6afac74da179f309d5ee12a7a669816490c30 /include/uapi | |
parent | RDMA/mlx5: Adding remote atomic access flag to updatable flags (diff) | |
download | linux-ee20cc17e9d8fd85225e18351637460f3482be2f.tar.xz linux-ee20cc17e9d8fd85225e18351637460f3482be2f.zip |
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.
Signed-off-by: Junxian Huang <huangjunxian6@hisilicon.com>
Link: https://lore.kernel.org/r/20240315093551.1650088-1-huangjunxian6@hisilicon.com
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Diffstat (limited to 'include/uapi')
-rw-r--r-- | include/uapi/rdma/hns-abi.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/include/uapi/rdma/hns-abi.h b/include/uapi/rdma/hns-abi.h index 158670da2b2a..94e861870e27 100644 --- a/include/uapi/rdma/hns-abi.h +++ b/include/uapi/rdma/hns-abi.h @@ -109,6 +109,12 @@ struct hns_roce_ib_create_qp_resp { __aligned_u64 dwqe_mmap_key; }; +struct hns_roce_ib_modify_qp_resp { + __u8 tc_mode; + __u8 priority; + __u8 reserved[6]; +}; + enum { HNS_ROCE_EXSGE_FLAGS = 1 << 0, HNS_ROCE_RQ_INLINE_FLAGS = 1 << 1, @@ -143,7 +149,8 @@ struct hns_roce_ib_alloc_pd_resp { struct hns_roce_ib_create_ah_resp { __u8 dmac[6]; - __u8 reserved[2]; + __u8 priority; + __u8 tc_mode; }; #endif /* HNS_ABI_USER_H */ |