Skip to content
/ linux Public

Commit 9650627

Browse files
Mingj YeSasha Levin
authored andcommitted
net: usb: r8152: fix transmit queue timeout
[ Upstream commit 833dcd7 ] When the TX queue length reaches the threshold, the netdev watchdog immediately detects a TX queue timeout. This patch updates the trans_start timestamp of the transmit queue on every asynchronous USB URB submission along the transmit path, ensuring that the network watchdog accurately reflects ongoing transmission activity. Signed-off-by: Mingj Ye <insyelu@gmail.com> Reviewed-by: Hayes Wang <hayeswang@realtek.com> Link: https://patch.msgid.link/20260120015949.84996-1-insyelu@gmail.com Signed-off-by: Jakub Kicinski <kuba@kernel.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
1 parent a729596 commit 9650627

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/net/usb/r8152.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2449,6 +2449,8 @@ static int r8152_tx_agg_fill(struct r8152 *tp, struct tx_agg *agg)
24492449
ret = usb_submit_urb(agg->urb, GFP_ATOMIC);
24502450
if (ret < 0)
24512451
usb_autopm_put_interface_async(tp->intf);
2452+
else
2453+
netif_trans_update(tp->netdev);
24522454

24532455
out_tx_fill:
24542456
return ret;

0 commit comments

Comments
 (0)