[PATCH iwl-net 5/5] e1000: let dev_watchdog reset the adapter after a Tx hang
From: Steffen Dirkwinkel
Date: Mon Nov 23 2026 - 04:56:08 EST
From: Steffen Dirkwinkel <s.dirkwinkel@xxxxxxxxxxxx>
Like e1000e, e1000 stops the queue on every Tx hang report and relies
on dev_watchdog() to reset the adapter. Its watchdog forces an
interrupt every two seconds, so the hang is reported every two seconds.
Since commit 95ecba62e2fd ("net: fix races in
netdev_tx_sent_queue()/dev_watchdog()") every stop also writes
trans_start, so the 5 s watchdog timeout never expires and the adapter
is never reset.
Stop the queue only if it isn't stopped yet.
Found by code inspection after the same problem in e1000e. Tested in
QEMU (e1000) with TCTL.EN cleared to stall Tx: without this change the
device never recovered, with it the watchdog reset it after about 10 s,
in 3 of 3 runs each. Not tested on hardware.
Fixes: 95ecba62e2fd ("net: fix races in netdev_tx_sent_queue()/dev_watchdog()")
Cc: stable@xxxxxxxxxxxxxxx
Signed-off-by: Steffen Dirkwinkel <s.dirkwinkel@xxxxxxxxxxxx>
---
drivers/net/ethernet/intel/e1000/e1000_main.c | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/drivers/net/ethernet/intel/e1000/e1000_main.c b/drivers/net/ethernet/intel/e1000/e1000_main.c
index d7e279b739b8..4858c0a8c7b2 100644
--- a/drivers/net/ethernet/intel/e1000/e1000_main.c
+++ b/drivers/net/ethernet/intel/e1000/e1000_main.c
@@ -3925,7 +3925,14 @@ static bool e1000_clean_tx_irq(struct e1000_adapter *adapter,
jiffies,
eop_desc->upper.fields.status);
e1000_dump(adapter);
- netif_stop_queue(netdev);
+
+ /* The hang is reported again on every watchdog run,
+ * but stop the queue only once: stopping it again
+ * would also restart the Tx timeout, so dev_watchdog()
+ * would never reset the adapter.
+ */
+ if (!netif_queue_stopped(netdev))
+ netif_stop_queue(netdev);
}
}
adapter->total_tx_bytes += total_tx_bytes;
--
2.56.1