]> 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)
commit9725963405fe314d4833a0558ec6c8bb7491e1f8
treec6ad1518bc6373986c536841db4c1c7c3c37b559
parent4dad4680d35147afa70d52ad8791285d87885a2d
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