Commit 27c5fd271d8b ("RDMA/hns: The UD mode can only be configured with DCQCN") adds a restriction that only DCQCN is supported for UD QPs, but at the same time introduced other problem mistakenly. Patch #1 reverts the previous modification and fixes the algorithm issue for UD by configuring congestion control algorithm with QP granularity. Patch #2 adds support for userspace configuring congestion control algorithm with QP granularity. v1 -> v2: * Not only revert but also fix the UD algorithm issue in patch #1. Junxian Huang (1): RDMA/hns: Support userspace configuring congestion control algorithm with QP granularity Luoyouming (1): RDMA/hns: Fix mis-modifying default congestion control algorithm drivers/infiniband/hw/hns/hns_roce_device.h | 26 +++++--- drivers/infiniband/hw/hns/hns_roce_hw_v2.c | 18 ++---- drivers/infiniband/hw/hns/hns_roce_hw_v2.h | 3 +- drivers/infiniband/hw/hns/hns_roce_main.c | 3 + drivers/infiniband/hw/hns/hns_roce_qp.c | 71 +++++++++++++++++++++ include/uapi/rdma/hns-abi.h | 17 +++++ 6 files changed, 118 insertions(+), 20 deletions(-) -- 2.30.0