]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
ixgbevf: Link lost in VM on ixgbevf when restoring from freeze or suspend
authorRadoslaw Tyl <radoslawx.tyl@intel.com>
Thu, 4 Jul 2019 13:48:42 +0000 (15:48 +0200)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Mon, 9 Sep 2019 17:08:38 +0000 (10:08 -0700)
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>
drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c

index 8c011d4ce7a98c1fc34dc09b126fa20c5ad5a550..75e849a64db7019317cc57fd6b50df838d82abd4 100644 (file)
@@ -2517,6 +2517,7 @@ void ixgbevf_reinit_locked(struct ixgbevf_adapter *adapter)
                msleep(1);
 
        ixgbevf_down(adapter);
+       pci_set_master(adapter->pdev);
        ixgbevf_up(adapter);
 
        clear_bit(__IXGBEVF_RESETTING, &adapter->state);