Skip to content

Commit dd5fb04

Browse files
kaleshap86jgunthorpe
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/1684397461-23082-4-git-send-email-selvin.xavier@broadcom.com Signed-off-by: Kalesh AP <kalesh-anakkur.purayil@broadcom.com> Reviewed-by: Selvin Thyparampil Xavier <selvin.xavier@broadcom.com> Signed-off-by: Selvin Xavier <selvin.xavier@broadcom.com> Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
1 parent 0fa0d52 commit dd5fb04

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

  • drivers/infiniband/hw/bnxt_re

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)