diff options
author | Stefan Assmann <sassmann@kpanic.de> | 2014-07-10 14:29:39 +0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-07-10 23:45:24 +0400 |
commit | 76252723e88681628a3dbb9c09c963e095476f73 (patch) | |
tree | ca801bd5c10b76955016f00c296355347f070842 /drivers/net | |
parent | 948264879b6894dc389a44b99fae4f0b72932619 (diff) | |
download | linux-76252723e88681628a3dbb9c09c963e095476f73.tar.xz |
igb: do a reset on SR-IOV re-init if device is down
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.
Cc: stable <stable@vger.kernel.org>
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>
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/ethernet/intel/igb/igb_main.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/ethernet/intel/igb/igb_main.c b/drivers/net/ethernet/intel/igb/igb_main.c index 57a96e00df8c..a9537ba7a5a0 100644 --- a/drivers/net/ethernet/intel/igb/igb_main.c +++ b/drivers/net/ethernet/intel/igb/igb_main.c @@ -7592,6 +7592,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); |