Home
last modified time | relevance | path

Searched hist:"09 a89cc59ad67794a11e1d3dd13c5b3172adcc51" (Results 1 – 1 of 1) sorted by relevance

/linux/drivers/net/ethernet/broadcom/bnxt/
H A Dbnxt_sriov.cdiff 09a89cc59ad67794a11e1d3dd13c5b3172adcc51 Mon Aug 22 17:06:53 CEST 2022 Vikas Gupta <vikas.gupta@broadcom.com> bnxt_en: fix NQ resource accounting during vf creation on 57500 chips

There are 2 issues:

1. We should decrement hw_resc->max_nqs instead of hw_resc->max_irqs
with the number of NQs assigned to the VFs. The IRQs are fixed
on each function and cannot be re-assigned. Only the NQs are being
assigned to the VFs.

2. vf_msix is the total number of NQs to be assigned to the VFs. So
we should decrement vf_msix from hw_resc->max_nqs.

Fixes: b16b68918674 ("bnxt_en: Add SR-IOV support for 57500 chips.")
Signed-off-by: Vikas Gupta <vikas.gupta@broadcom.com>
Signed-off-by: Michael Chan <michael.chan@broadcom.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>