Skip to contentSkip to conversation

RDMA/bnxt_re: Fix the condition check while programming congestion control

PATCH Applied Selvin Xavier 2 participants 2 messages Feb 8, 2025 – Feb 9, 2025

Subsystems (2)
lore
Share & tools
lore

Selvin Xavier

author maintainer
#0 lore raw

PATCH 1/1 RDMA/bnxt_re: Fix the condition check while programming congestion control

Program the Congestion control values when the CC gen matches. Fix the condition check for the same.

Fixes 656dff55da19 ("RDMA/bnxt_re: Congestion control settings using debugfs hook")
---
 drivers/infiniband/hw/bnxt_re/debugfs.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/infiniband/hw/bnxt_re/debugfs.c +1 -1
index f4dd2fb..03c8da90 100644
@@ -265,7 +265,7 @@ static int bnxt_re_configure_cc(struct bnxt_re_dev *rdev, u32 gen_ext, u32 offse
 	struct bnxt_qplib_cc_param ccparam = { };
 
 	/* Supporting only Gen 0 now */
-	if (gen_ext != CC_CONFIG_GEN0_EXT0)
+	if (gen_ext == CC_CONFIG_GEN0_EXT0)
 		bnxt_re_fill_gen0_ext0(&ccparam, offset, val);
 	else
 		return -EINVAL;
Signature · 1 line
2.5.5