Commit f26e648a authored by Selvin Xavier's avatar Selvin Xavier Committed by Leon Romanovsky
Browse files

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: 656dff55 ("RDMA/bnxt_re: Congestion control settings using debugfs hook")
Reported-by: default avatarKalesh AP <kalesh-anakkur.purayil@broadcom.com>
Reported-by: default avatarChengchang Tang <tangchengchang@huawei.com>
Signed-off-by: default avatarSelvin Xavier <selvin.xavier@broadcom.com>
Link: https://patch.msgid.link/1739022506-8937-1-git-send-email-selvin.xavier@broadcom.com


Signed-off-by: default avatarLeon Romanovsky <leon@kernel.org>
parent dbc641ec
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;