[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20260114025622.24348-1-insyelu@gmail.com>
Date: Wed, 14 Jan 2026 10:56:22 +0800
From: insyelu <insyelu@...il.com>
To: andrew+netdev@...n.ch,
davem@...emloft.net,
nic_swsd@...ltek.com,
tiwai@...e.de
Cc: hayeswang@...ltek.com,
linux-usb@...r.kernel.org,
netdev@...r.kernel.org,
linux-kernel@...r.kernel.org,
insyelu <insyelu@...il.com>
Subject: [PATCH] net: usb: r8152: fix transmit queue timeout
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@...il.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
Powered by blists - more mailing lists