RDMA/hns: Support userspace configuring congestion control algorithm with QP granularity
authorJunxian Huang <huangjunxian6@hisilicon.com>
Fri, 1 Mar 2024 10:48:45 +0000 (18:48 +0800)
committerLeon Romanovsky <leon@kernel.org>
Sun, 3 Mar 2024 13:01:33 +0000 (15:01 +0200)
commit6ec429d5887a41b2dc8d92e391552f5604085cc2
treedd1445ca2fc97e3062502123048a64175aea6bf3
parent7a7b7f575a25aa68ee934ee8107294487efcb3fe
RDMA/hns: Support userspace configuring congestion control algorithm with QP granularity

Currently, congestion control algorithm is statically configured in
FW, and all QPs use the same algorithm(except UD which has a fixed
configuration of DCQCN). This is not flexible enough.

Support userspace configuring congestion control algorithm with QP
granularity while creating QPs. If the algorithm is not specified in
userspace, use the default one.

Signed-off-by: Junxian Huang <huangjunxian6@hisilicon.com>
Link: https://lore.kernel.org/r/20240301104845.1141083-1-huangjunxian6@hisilicon.com
Signed-off-by: Leon Romanovsky <leon@kernel.org>
drivers/infiniband/hw/hns/hns_roce_device.h
drivers/infiniband/hw/hns/hns_roce_hw_v2.c
drivers/infiniband/hw/hns/hns_roce_hw_v2.h
drivers/infiniband/hw/hns/hns_roce_main.c
drivers/infiniband/hw/hns/hns_roce_qp.c
include/uapi/rdma/hns-abi.h