Skip to content

Commit dd5fb04

Browse files
Kalesh APjgunthorpe
authored andcommitted
RDMA/bnxt_re: Do not enable congestion control on VFs
Congestion control needs to be enabled only on the PFs. FW fails the command if issued on VFs. Avoid sending the command on VFs. Fixes: f13bcef ("RDMA/bnxt_re: Enable congestion control by default") Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Kalesh AP <[email protected]> Reviewed-by: Selvin Thyparampil Xavier <[email protected]> Signed-off-by: Selvin Xavier <[email protected]> Signed-off-by: Jason Gunthorpe <[email protected]>
1 parent 0fa0d52 commit dd5fb04

File tree

1 file changed

+4
-0
lines changed
  • drivers/infiniband/hw/bnxt_re

1 file changed

+4
-0
lines changed

drivers/infiniband/hw/bnxt_re/main.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1336,6 +1336,10 @@ static void bnxt_re_setup_cc(struct bnxt_re_dev *rdev, bool enable)
13361336
{
13371337
struct bnxt_qplib_cc_param cc_param = {};
13381338

1339+
/* Do not enable congestion control on VFs */
1340+
if (rdev->is_virtfn)
1341+
return;
1342+
13391343
/* Currently enabling only for GenP5 adapters */
13401344
if (!bnxt_qplib_is_chip_gen_p5(rdev->chip_ctx))
13411345
return;

0 commit comments

Comments
 (0)