The configuration of congestion control algorithm is recorded in the firmware, the driver queries it and then sets it to the hardware.
Wei Xu (1): RDMA/hns: Support query information of functions from FW
Yangyang Li (1): RDMA/hns: Support congestion control type selection according to the FW
drivers/infiniband/hw/hns/hns_roce_device.h | 11 ++ drivers/infiniband/hw/hns/hns_roce_hw_v2.c | 192 ++++++++++++++++++++++++++++ drivers/infiniband/hw/hns/hns_roce_hw_v2.h | 34 ++++- drivers/infiniband/hw/hns/hns_roce_main.c | 2 + 4 files changed, 236 insertions(+), 3 deletions(-)