ixgbevf: Link lost in VM on ixgbevf when restoring from freeze or suspend

This patch fixed issue in VM which shows no link when hypervisor is
restored from low-power state. The driver is responsible for re-enabling
any features of the device that had been disabled during suspend calls,
such as IRQs and bus mastering.

Signed-off-by: Radoslaw Tyl <radoslawx.tyl@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
This commit is contained in:
Radoslaw Tyl 2019-07-04 15:48:42 +02:00 committed by Jeff Kirsher
parent 2410a3dad4
commit d7cb9da186

View File

@ -2517,6 +2517,7 @@ void ixgbevf_reinit_locked(struct ixgbevf_adapter *adapter)
msleep(1); msleep(1);
ixgbevf_down(adapter); ixgbevf_down(adapter);
pci_set_master(adapter->pdev);
ixgbevf_up(adapter); ixgbevf_up(adapter);
clear_bit(__IXGBEVF_RESETTING, &adapter->state); clear_bit(__IXGBEVF_RESETTING, &adapter->state);