2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-27 06:34:11 +08:00
linux-next/drivers/net/ethernet/broadcom/bnxt
Michael Chan 4a21b49b34 bnxt_en: Improve VF resource accounting.
We need to keep track of all resources, such as rx rings, tx rings,
cmpl rings, rss contexts, stats contexts, vnics, after we have
divided them for the VFs.  Otherwise, subsequent ring changes on
the PF may not work correctly.

We adjust all max resources in struct bnxt_pf_info after they have been
assigned to the VFs.  There is no need to keep the separate
max_pf_tx_rings and max_pf_rx_rings.

When SR-IOV is disabled, we call bnxt_hwrm_func_qcaps() to restore the
max resources for the PF.

Signed-off-by: Michael Chan <mchan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2015-12-28 00:57:28 -05:00
..
bnxt_ethtool.c bnxt_en: Check hardware resources before enabling NTUPLE. 2015-12-28 00:57:28 -05:00
bnxt_ethtool.h
bnxt_fw_hdr.h
bnxt_hsi.h
bnxt_nvm_defs.h
bnxt_sriov.c bnxt_en: Improve VF resource accounting. 2015-12-28 00:57:28 -05:00
bnxt_sriov.h
bnxt.c bnxt_en: Improve VF resource accounting. 2015-12-28 00:57:28 -05:00
bnxt.h bnxt_en: Improve VF resource accounting. 2015-12-28 00:57:28 -05:00
Makefile