Skip to contentSkip to conversation

igb: do a reset on SR-IOV re-init if device is down

PATCH In review Stefan Assmann 2 participants 2 messages Jul 1, 2014

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

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.

---
 drivers/net/ethernet/intel/igb/igb_main.c | 2 ++
 1 file changed, 2 insertions(+)
drivers/net/ethernet/intel/igb/igb_main.c +2 -0
index f145adb..6f3cf45 100644
@@ -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
#1 lore raw
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.

---
 drivers/net/ethernet/intel/igb/igb_main.c | 2 ++
 1 file changed, 2 insertions(+)

Thanks Stefan, I have added your patch to my queue.