igb: do a reset on SR-IOV re-init if device is down
Subsystems (3)
PATCH 1/1 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.
Signed-off-by Stefan Assmann <[email protected]>
--- drivers/net/ethernet/intel/igb/igb_main.c | 2 ++ 1 file changed, 2 insertions(+)
drivers/net/ethernet/intel/igb/igb_main.c +2 -0
@@ -7578,6 +7578,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);
Signature · 1 line
1.9.3
Quoted 8 lines · Stefan Assmann
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 <[email protected]>--- drivers/net/ethernet/intel/igb/igb_main.c | 2 ++ 1 file changed, 2 insertions(+)
Thanks Stefan, I have added your patch to my queue.