Skip to content

Commit 27c5fd2

Browse files
Luoyoumingrleon
authored andcommitted
RDMA/hns: The UD mode can only be configured with DCQCN
Due to hardware limitations, only DCQCN is supported for UD. Therefore, the default algorithm for UD is set to DCQCN. Fixes: f91696f ("RDMA/hns: Support congestion control type selection according to the FW") Signed-off-by: Luoyouming <luoyouming@huawei.com> Signed-off-by: Junxian Huang <huangjunxian6@hisilicon.com> Link: https://lore.kernel.org/r/20231017125239.164455-6-huangjunxian6@hisilicon.com Signed-off-by: Leon Romanovsky <leon@kernel.org>
1 parent 5e617c1 commit 27c5fd2

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

drivers/infiniband/hw/hns/hns_roce_hw_v2.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4730,6 +4730,9 @@ static int check_cong_type(struct ib_qp *ibqp,
47304730
{
47314731
struct hns_roce_dev *hr_dev = to_hr_dev(ibqp->device);
47324732

4733+
if (ibqp->qp_type == IB_QPT_UD)
4734+
hr_dev->caps.cong_type = CONG_TYPE_DCQCN;
4735+
47334736
/* different congestion types match different configurations */
47344737
switch (hr_dev->caps.cong_type) {
47354738
case CONG_TYPE_DCQCN:

0 commit comments

Comments
 (0)