linux-stable/drivers/infiniband/hw
Luoyouming 987bc93ecd RDMA/hns: Fix mis-modifying default congestion control algorithm
[ Upstream commit d20a7cf9f7 ]

Commit 27c5fd271d ("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 27c5fd271d ("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: 27c5fd271d ("RDMA/hns: The UD mode can only be configured with DCQCN")
Fixes: f91696f2f0 ("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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-03-26 18:20:55 -04:00
..
bnxt_re RDMA/bnxt_re: Return error for SRQ resize 2024-03-01 13:26:34 +01:00
cxgb4 RDMA/cxgb4: Check skb value for failure to allocate 2023-10-19 23:08:49 +02:00
efa RDMA/efa: Fix wrong resources deallocation order 2023-09-13 09:42:57 +02:00
erdma RDMA/erdma: Use fixed hardware page size 2023-05-11 23:03:33 +09:00
hfi1 IB/hfi1: Fix a memleak in init_credit_return 2024-03-01 13:26:34 +01:00
hns RDMA/hns: Fix mis-modifying default congestion control algorithm 2024-03-26 18:20:55 -04:00
irdma RDMA/irdma: Remove duplicate assignment 2024-03-26 18:20:53 -04:00
mlx4 IB/mlx4: Fix the size of a buffer in add_port_entries() 2023-10-10 22:00:44 +02:00
mlx5 RDMA/mlx5: Relax DEVX access upon modify commands 2024-03-26 18:20:25 -04:00
mthca RDMA/usnic: Silence uninitialized symbol smatch warnings 2024-01-25 15:27:31 -08:00
ocrdma IB: move from strlcpy with unused retval to strscpy 2022-08-21 14:18:02 +03:00
qedr RDMA/qedr: Fix qedr_create_user_qp error flow 2024-03-01 13:26:35 +01:00
qib RDMA/qib: fix repeated words in comments 2022-09-20 14:11:14 +03:00
usnic RDMA/usnic: use iommu_map_atomic() under spin_lock() 2023-02-14 19:11:43 +01:00
vmw_pvrdma
Makefile RDMA/erdma: Add driver to kernel build environment 2022-07-27 16:04:05 -03:00