diff options
| author | Selvin Xavier <[email protected]> | 2025-02-08 13:48:26 +0000 |
|---|---|---|
| committer | Leon Romanovsky <[email protected]> | 2025-02-09 09:59:05 +0000 |
| commit | f26e648a978ae7958e0958095768363c851a736d (patch) | |
| tree | e37ab924728cd8077fd89f1e7d7dfc9b75c6dc47 | |
| parent | RDMA/bnxt_re: Fix buffer overflow in debugfs code (diff) | |
| download | kernel-f26e648a978ae7958e0958095768363c851a736d.tar.gz kernel-f26e648a978ae7958e0958095768363c851a736d.zip | |
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]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Leon Romanovsky <[email protected]>
| -rw-r--r-- | drivers/infiniband/hw/bnxt_re/debugfs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/infiniband/hw/bnxt_re/debugfs.c b/drivers/infiniband/hw/bnxt_re/debugfs.c index d7354e7753fe..af91d16c3c77 100644 --- a/drivers/infiniband/hw/bnxt_re/debugfs.c +++ b/drivers/infiniband/hw/bnxt_re/debugfs.c @@ -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; |
