Commit 27c5fd27 authored by Luoyouming's avatar Luoyouming Committed by Leon Romanovsky
Browse files

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: f91696f2 ("RDMA/hns: Support congestion control type selection according to the FW")
Signed-off-by: default avatarLuoyouming <luoyouming@huawei.com>
Signed-off-by: default avatarJunxian Huang <huangjunxian6@hisilicon.com>
Link: https://lore.kernel.org/r/20231017125239.164455-6-huangjunxian6@hisilicon.com


Signed-off-by: default avatarLeon Romanovsky <leon@kernel.org>
parent 5e617c18
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -4730,6 +4730,9 @@ static int check_cong_type(struct ib_qp *ibqp,
{
	struct hns_roce_dev *hr_dev = to_hr_dev(ibqp->device);

	if (ibqp->qp_type == IB_QPT_UD)
		hr_dev->caps.cong_type = CONG_TYPE_DCQCN;

	/* different congestion types match different configurations */
	switch (hr_dev->caps.cong_type) {
	case CONG_TYPE_DCQCN: