RDMA/hns: Add window selection field of congestion control
authorYixing Liu <liuyixing1@huawei.com>
Tue, 22 Jun 2021 12:16:03 +0000 (20:16 +0800)
committerJason Gunthorpe <jgg@nvidia.com>
Thu, 24 Jun 2021 18:14:06 +0000 (15:14 -0300)
commit7ae61c5f16671ecaf23526feb6892c8249d0c2d7
tree06f0dd83744994a7d58c2123247d58b8435fa54b
parent36f5625af34c89d6c5426c43d321520d668c584c
RDMA/hns: Add window selection field of congestion control

The window selection field is necessary for congestion control of HIP09,
it is got from firmware and then filled into QPC. Some algorithms need it
to decide whether to limit the number of windows.

Fixes: f91696f2f053 ("RDMA/hns: Support congestion control type selection according to the FW")
Link: https://lore.kernel.org/r/1624364163-44185-1-git-send-email-liweihang@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_hw_v2.c
drivers/infiniband/hw/hns/hns_roce_hw_v2.h