linux/drivers/net/ethernet/intel
Mitch A Williams 6a9ddb36ee i40e: disable IOV before freeing resources
If VF drivers are loaded in the host OS, the call to pci_disable_sriov()
will cause these drivers' remove routines to be called. If the PF driver
has already freed VF resources before this happens, then the VF remove
routine can't properly communicate with the PF driver causing all sorts
of mayhem and error messages and hurt feelings.

To fix this, we move the call to pci_disable_sriov() up to the top of
the function and let it complete before freeing any VF resources.

Change-ID: I397c3997a00f6408e32b7735273911e499600236
Signed-off-by: Mitch Williams <mitch.a.williams@intel.com>
Acked-by: Shannon Nelson <shannon.nelson@intel.com>
Tested-by: Jim Young <james.m.young@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
2015-01-13 11:28:47 -08:00
..
e1000 ethernet/intel: Use napi_alloc_skb 2014-12-10 13:31:57 -05:00
e1000e e1000e: convert to CYCLECOUNTER_MASK macro. 2015-01-02 16:47:35 -05:00
fm10k fm10k/igb/ixgbe: Use dma_rmb on Rx descriptor reads 2014-12-11 21:15:06 -05:00
i40e i40e: disable IOV before freeing resources 2015-01-13 11:28:47 -08:00
i40evf i40e/i40evf: Convert macro to static inline 2014-12-09 12:57:05 -08:00
igb Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net 2015-01-06 22:29:20 -05:00
igbvf PCI: Remove DEFINE_PCI_DEVICE_TABLE macro use 2014-08-12 12:15:14 -06:00
ixgb ethernet/intel: Use napi_alloc_skb 2014-12-10 13:31:57 -05:00
ixgbe ixgbe: convert to CYCLECOUNTER_MASK macro. 2015-01-02 16:47:36 -05:00
ixgbevf ethernet/intel: Use eth_skb_pad and skb_put_padto helpers 2014-12-08 20:47:42 -05:00
e100.c e100: fix typo in MDI/MDI-X eeprom check in e100_phy_init 2014-12-31 11:55:40 -08:00
Kconfig fm10k: Add CONFIG_FM10K_VXLAN configuration option 2014-10-16 02:03:39 -07:00
Makefile fm10k: Add skeletal frame for Intel(R) FM10000 Ethernet Switch Host Interface Driver 2014-09-23 03:59:13 -07:00