diff options
author | 2024-02-19 14:18:05 +0800 | |
---|---|---|
committer | 2024-02-19 09:50:31 +0200 | |
commit | d20a7cf9f714f0763efb56f0f2eeca1cb91315ed (patch) | |
tree | 9231cb6c8604d36a418a0efb3bc72a7f3019abd6 /drivers/media/dvb-frontends/mt352.h | |
parent | RDMA/rxe: Remove unused 'iova' parameter from rxe_mr_init_user (diff) | |
download | linux-d20a7cf9f714f0763efb56f0f2eeca1cb91315ed.tar.gz linux-d20a7cf9f714f0763efb56f0f2eeca1cb91315ed.tar.bz2 linux-d20a7cf9f714f0763efb56f0f2eeca1cb91315ed.zip |
RDMA/hns: Fix mis-modifying default congestion control algorithm
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.
Fixes: 27c5fd271d8b ("RDMA/hns: The UD mode can only be configured with DCQCN")
Fixes: f91696f2f053 ("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/20240219061805.668170-1-huangjunxian6@hisilicon.com
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Diffstat (limited to 'drivers/media/dvb-frontends/mt352.h')
0 files changed, 0 insertions, 0 deletions