]> git.baikalelectronics.ru Git - 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)
commit90322d5f8abe14e05e975f127552355019c57049
treec6ad1518bc6373986c536841db4c1c7c3c37b559
parente027541a00e370677f09818923d2c909e9e33af5
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