The configuration of congestion control algorithm is recorded in the firmware, the driver queries it and then sets it to the hardware. Changes since v1: - Use union to parse information got from firmware instead of force casting. - https://patchwork.kernel.org/project/linux-rdma/cover/1615542507-40018-1-git-send-email-liweihang@xxxxxxxxxx/ 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 | 190 ++++++++++++++++++++++++++++ drivers/infiniband/hw/hns/hns_roce_hw_v2.h | 38 +++++- drivers/infiniband/hw/hns/hns_roce_main.c | 2 + 4 files changed, 237 insertions(+), 4 deletions(-) -- 2.8.1