RDMA/hns: Support DSCP
authorJunxian Huang <huangjunxian6@hisilicon.com>
Fri, 15 Mar 2024 09:35:51 +0000 (17:35 +0800)
committerLeon Romanovsky <leon@kernel.org>
Tue, 9 Apr 2024 07:27:41 +0000 (10:27 +0300)
commitee20cc17e9d8fd85225e18351637460f3482be2f
tree76c6afac74da179f309d5ee12a7a669816490c30
parent2ca7e93bc963d9ec2f5c24d117176851454967af
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>
drivers/infiniband/hw/hns/hns_roce_ah.c
drivers/infiniband/hw/hns/hns_roce_device.h
drivers/infiniband/hw/hns/hns_roce_hw_v2.c
drivers/infiniband/hw/hns/hns_roce_qp.c
include/uapi/rdma/hns-abi.h