RDMA/hns: Support congestion control type selection according to the FW
authorYangyang Li <liyangyang20@huawei.com>
Thu, 25 Mar 2021 13:33:56 +0000 (21:33 +0800)
committerJason Gunthorpe <jgg@nvidia.com>
Thu, 1 Apr 2021 18:23:09 +0000 (15:23 -0300)
commitf91696f2f05326d9837b4088118c938e805be942
tree240f5cb76d14a4660c9be3d5ad40592ab5ee1029
parente079d87d1d9a5c27415bf5b71245566ae434372f
RDMA/hns: Support congestion control type selection according to the FW

The type of congestion control algorithm includes DCQCN, LDCP, HC3 and
DIP. The driver will select one of them according to the firmware when
querying PF capabilities, and then set the related configuration fields
into QPC.

Link: https://lore.kernel.org/r/1616679236-7795-3-git-send-email-liweihang@huawei.com
Signed-off-by: Yangyang Li <liyangyang20@huawei.com>
Signed-off-by: Yixing Liu <liuyixing1@huawei.com>
Signed-off-by: Weihang Li <liweihang@huawei.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
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