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 <[email protected]> Signed-off-by: Junxian Huang <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Leon Romanovsky <[email protected]>
1 parent 5e617c1 commit 27c5fd2

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

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)