ixgbe: reset before SRIOV init to avoid mailbox issues
authorEmil Tantilov <emil.s.tantilov@intel.com>
Fri, 9 Sep 2016 19:59:10 +0000 (12:59 -0700)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Fri, 23 Sep 2016 07:23:01 +0000 (00:23 -0700)
commit0c339bf9ac2eed861d34a9dd40aee2a2d490ec36
tree602d72cbfa96bafcb82fa425dccd4002e6c21df0
parente24fcf28959298e07cae9ee19eb9a4b2b399b4fb
ixgbe: reset before SRIOV init to avoid mailbox issues

Enabling SRIOV while the ixgbevf driver is loaded will result in all
mailbox requests from ixgbevf_open() being rejected by ixgbe because
adapter->clear_to_send is set to false on reset.

Call ixgbe_sriov_reinit() before pci_enable_sriov() to make sure that
mailbox requests are handled from the time ixgbevf is loaded.

Reported-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Emil Tantilov <emil.s.tantilov@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/ixgbe/ixgbe_sriov.c