]> www.infradead.org Git - users/jedix/linux-maple.git/commit
bnxt_en: More robust SRIOV cleanup sequence.
authorJeffrey Huang <huangjw@broadcom.com>
Thu, 5 Nov 2015 21:25:51 +0000 (16:25 -0500)
committerChuck Anderson <chuck.anderson@oracle.com>
Thu, 7 Jul 2016 00:36:33 +0000 (17:36 -0700)
commit2172d4041d112e14df2859b89434d39bb6c78940
tree7ccf111f5c6f009e776cd0b843e2f13d933d9fb2
parent4646add36b13f07f32556a4148f7d7c4010eb505
bnxt_en: More robust SRIOV cleanup sequence.

Orabug: 23221795

Instead of always calling pci_sriov_disable() in remove_one(),
the driver should detect whether VFs are currently assigned
to the VMs. If the VFs are active in VMs, then it should not
disable SRIOV as it is catastrophic to the VMs. Instead,
it just leaves the VFs alone and continues to unload the PF.
The user can then cleanup the VMs even after the PF driver
has been unloaded.

Signed-off-by: Jeffrey Huang <huangjw@broadcom.com>
Signed-off-by: Michael Chan <mchan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
(cherry picked from commit 4bb6cdce386d620d10d2588ea5bf4093a3b21ab9)
Signed-off-by: Brian Maly <brian.maly@oracle.com>
drivers/net/ethernet/broadcom/bnxt/bnxt_sriov.c