Re: [PATCH for-next] RDMA/hns: Fix mis-modifying default congestion control algorithm

From: Leon Romanovsky
Date: Mon Feb 19 2024 - 03:00:59 EST



On Mon, 19 Feb 2024 14:18:05 +0800, Junxian Huang wrote:
> Commit 27c5fd271d8b ("RDMA/hns: The UD mode can only be configured
> with DCQCN") adds a check of congest control alorithm for UD. But
> that patch causes a problem: hr_dev->caps.congest_type is global,
> used by all QPs, so modifying this field to DCQCN for UD QPs causes
> other QPs unable to use any other algorithm except DCQCN.
>
> Revert the modification in commit 27c5fd271d8b ("RDMA/hns: The UD
> mode can only be configured with DCQCN"). Add a new field cong_type
> to struct hns_roce_qp and configure DCQCN for UD QPs.
>
> [...]

Applied, thanks!

[1/1] RDMA/hns: Fix mis-modifying default congestion control algorithm
https://git.kernel.org/rdma/rdma/c/d20a7cf9f714f0

Best regards,
--
Leon Romanovsky <leon@xxxxxxxxxx>