Commit 4eedaaeb authored by Xinghai Cen's avatar Xinghai Cen Committed by Junxian Huang
Browse files

RDMA/hns: Fix default congestion control algorithm not set for kernel QP

driver inclusion
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/IBSE4C



----------------------------------------------------------------------

default_congest_type() should be called to set the default
congestion control algorithm for kernel QP.

Fixes: 09f1b7cb ("RDMA/hns: Support congestion control algorithm configuration at QP granularity")
Signed-off-by: default avatarXinghai Cen <cenxinghai@h-partners.com>
parent c53bdb96
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -1351,6 +1351,7 @@ static int set_qp_param(struct hns_roce_dev *hr_dev, struct hns_roce_qp *hr_qp,

		if (hr_dev->pci_dev->revision >= PCI_REVISION_ID_HIP09)
			hr_qp->config = HNS_ROCE_EXSGE_FLAGS;
		default_congest_type(hr_dev, hr_qp);
		ret = set_kernel_sq_size(hr_dev, &init_attr->cap, hr_qp);
		if (ret)
			ibdev_err(ibdev, "Failed to set kernel SQ size, ret = %d\n",