]> git.baikalelectronics.ru Git - kernel.git/commit
bnxt_en: Store the maximum NQs available on the PF.
authorMichael Chan <michael.chan@broadcom.com>
Sun, 16 Dec 2018 23:46:19 +0000 (18:46 -0500)
committerDavid S. Miller <davem@davemloft.net>
Tue, 18 Dec 2018 07:08:52 +0000 (23:08 -0800)
commitb3d9b6efbb889316169d5267ce2a4cbfad9cc84e
tree7f283f69dfaae6a75b96175403645f787cca4a14
parent9552a5f13a10c2aca856955043336bf5cbd69b9f
bnxt_en: Store the maximum NQs available on the PF.

The PF has a pool of NQs and MSIX vectors assigned to it based on
NVRAM configurations.  The number of usable MSIX vectors on the PF
is the minimum of the NQs and MSIX vectors.  Any excess NQs without
associated MSIX may be used for the VFs, so we need to store this
max_nqs value.  max_nqs minus the NQs used by the PF will be the
available NQs for the VFs.

Signed-off-by: Michael Chan <michael.chan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/bnxt/bnxt.c
drivers/net/ethernet/broadcom/bnxt/bnxt.h