From: insyelu <insyelu@gmail.com>
To: andrew+netdev@lunn.ch, davem@davemloft.net, nic_swsd@realtek.com,
tiwai@suse.de
Cc: hayeswang@realtek.com, linux-usb@vger.kernel.org,
netdev@vger.kernel.org, linux-kernel@vger.kernel.org,
insyelu <insyelu@gmail.com>
Subject: [PATCH] net: usb: r8152: fix transmit queue timeout
Date: Wed, 14 Jan 2026 10:56:22 +0800 [thread overview]
Message-ID: <20260114025622.24348-1-insyelu@gmail.com> (raw)
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
next reply other threads:[~2026-01-14 2:57 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-01-14 2:56 insyelu [this message]
2026-01-14 4:38 ` [PATCH] net: usb: r8152: fix transmit queue timeout 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260114025622.24348-1-insyelu@gmail.com \
--to=insyelu@gmail.com \
--cc=andrew+netdev@lunn.ch \
--cc=davem@davemloft.net \
--cc=hayeswang@realtek.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-usb@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=nic_swsd@realtek.com \
--cc=tiwai@suse.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox