RDMA/bnxt_re: Fix the condition check while programming congestion control
Subsystems (2)
Selvin Xavier
maintainerPATCH 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")
Reported-by Kalesh AP <[email protected]>
Reported-by Chengchang Tang <[email protected]>
Signed-off-by Selvin Xavier <[email protected]>
--- drivers/infiniband/hw/bnxt_re/debugfs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/infiniband/hw/bnxt_re/debugfs.c +1 -1
@@ -265,7 +265,7 @@ static int bnxt_re_configure_cc(struct bnxt_re_dev *rdev, u32 gen_ext, u32 offsestruct 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
Leon Romanovsky
AppliedQuoted 4 lines · Selvin Xavier
Program the Congestion control values when the CC gen matches. Fix the condition check for the same.
Applied, thanks!
[1/1] RDMA/bnxt_re: Fix the condition check while programming congestion control
https://git.kernel.org/rdma/rdma/c/f26e648a978ae7
Best regards,
Signature · 1 line
Leon Romanovsky <[email protected]>