public inbox for netdev@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] net: usb: r8152: fix transmit queue timeout
@ 2026-01-14  2:56 insyelu
  2026-01-14  4:38 ` Hayes Wang
  2026-01-16  2:37 ` [PATCH v2] " insyelu
  0 siblings, 2 replies; 12+ messages in thread
From: insyelu @ 2026-01-14  2:56 UTC (permalink / raw)
  To: andrew+netdev, davem, nic_swsd, tiwai
  Cc: hayeswang, linux-usb, netdev, linux-kernel, insyelu

When the TX queue length reaches the threshold, the netdev watchdog
immediately detects a TX queue timeout.

This patch updates the transmit queue's trans_start timestamp upon
completion of each asynchronous USB URB submission on the TX path,
ensuring the network watchdog correctly reflects ongoing transmission
activity.

Signed-off-by: insyelu <insyelu@gmail.com>
---
 drivers/net/usb/r8152.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/net/usb/r8152.c b/drivers/net/usb/r8152.c
index fa5192583860..afec602a5fdb 100644
--- a/drivers/net/usb/r8152.c
+++ b/drivers/net/usb/r8152.c
@@ -1954,6 +1954,8 @@ static void write_bulk_callback(struct urb *urb)
 
 	if (!skb_queue_empty(&tp->tx_queue))
 		tasklet_schedule(&tp->tx_tl);
+
+	netif_trans_update(netdev);
 }
 
 static void intr_callback(struct urb *urb)
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2026-01-19 12:34 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-01-14  2:56 [PATCH] net: usb: r8152: fix transmit queue timeout insyelu
2026-01-14  4:38 ` Hayes Wang
2026-01-15  1:37   ` lu lu
2026-01-15 11:42     ` Hayes Wang
2026-01-16  2:10       ` lu lu
2026-01-16  3:11         ` Hayes Wang
2026-01-16  7:30           ` lu lu
2026-01-19  2:51             ` Hayes Wang
2026-01-19  6:58               ` lu lu
2026-01-19 12:34                 ` Hayes Wang
2026-01-16  2:37 ` [PATCH v2] " insyelu
2026-01-16 17:32   ` Andrew Lunn

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox