]> www.infradead.org Git - users/jedix/linux-maple.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)
committerDhaval Giani <dhaval.giani@oracle.com>
Fri, 20 Jan 2017 18:09:58 +0000 (13:09 -0500)
commita143fea1ac2837294ee4f9af3642896e5114bf99
tree2a72097d577f2162db1eab6e5f30f43d36559f78
parentfd4d4e1aca1c84f8eadaf60f46154ac7bbc64411
bnxt_en: Improve completion ring allocation for VFs.

Orabug: 24567991

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>
(cherry picked from commit 7b08f661ab80e87dcdba7ab9a460fe2c9d08bf5b)
Signed-off-by: Brian Maly <brian.maly@oracle.com>
Signed-off-by: Dhaval Giani <dhaval.giani@oracle.com>
drivers/net/ethernet/broadcom/bnxt/bnxt.c
drivers/net/ethernet/broadcom/bnxt/bnxt.h
drivers/net/ethernet/broadcom/bnxt/bnxt_sriov.c