]> git.hungrycats.org Git - linux/commitdiff
igb: do a reset on SR-IOV re-init if device is down
authorStefan Assmann <sassmann@kpanic.de>
Thu, 10 Jul 2014 10:29:39 +0000 (03:29 -0700)
committerJiri Slaby <jslaby@suse.cz>
Tue, 29 Jul 2014 14:56:54 +0000 (16:56 +0200)
commit 76252723e88681628a3dbb9c09c963e095476f73 upstream.

To properly re-initialize SR-IOV it is necessary to reset the device
even if it is already down. Not doing this may result in Tx unit hangs.

Signed-off-by: Stefan Assmann <sassmann@kpanic.de>
Tested-by: Aaron Brown <aaron.f.brown@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
drivers/net/ethernet/intel/igb/igb_main.c

index d366df533726626236bfc1daef92adfdad162d67..76e43c417a3171b8b2019952dffec1f1e56ce9a1 100644 (file)
@@ -7295,6 +7295,8 @@ static int igb_sriov_reinit(struct pci_dev *dev)
 
        if (netif_running(netdev))
                igb_close(netdev);
+       else
+               igb_reset(adapter);
 
        igb_clear_interrupt_scheme(adapter);