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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 28 Jul 2014 15:05:58 +0000 (08:05 -0700)
commitf09e424e436c56fd8c4ebd182d407851b7f42d83
tree9f7947e1038af1a0cd9a5477be986765f4a7de55
parent081caead26b5841c597d520be8ff1e2f69b4fadc
igb: do a reset on SR-IOV re-init if device is down

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: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/ethernet/intel/igb/igb_main.c