]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit
bnxt_en: Improve completion ring allocation for VFs.
authorMichael Chan <michael.chan@broadcom.com>
Wed, 7 Dec 2016 05:26:18 +0000 (00:26 -0500)
committerDavid S. Miller <davem@davemloft.net>
Wed, 7 Dec 2016 15:59:26 +0000 (10:59 -0500)
commit7b08f661ab80e87dcdba7ab9a460fe2c9d08bf5b
treec6ad1518bc6373986c536841db4c1c7c3c37b559
parentaa8ed021ab515a93f2a052e9cc80320882889698
bnxt_en: Improve completion ring allocation for VFs.

All available remaining completion rings not used by the PF should be
made available for the VFs so that there are enough rings in the VF to
support RDMA.  The earlier workaround code of capping the rings by the
statistics context is removed.

When SRIOV is disabled, call a new function bnxt_restore_pf_fw_resources()
to restore FW resources.  Later on we need to add some logic to account
for RDMA resources.

Signed-off-by: Somnath Kotur <somnath.kotur@broadcom.com>
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
drivers/net/ethernet/broadcom/bnxt/bnxt_sriov.c