mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
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 <[email protected]> Signed-off-by: Stefan Assmann <[email protected]> Tested-by: Aaron Brown <[email protected]> Signed-off-by: Jeff Kirsher <[email protected]> Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
parent
948264879b
commit
76252723e8
1 changed files with 2 additions and 0 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue