Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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 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>

authored by

Mingj Ye and committed by
Jakub Kicinski
833dcd75 1802e907

+2
+2
drivers/net/usb/r8152.c
··· 2449 2449 ret = usb_submit_urb(agg->urb, GFP_ATOMIC); 2450 2450 if (ret < 0) 2451 2451 usb_autopm_put_interface_async(tp->intf); 2452 + else 2453 + netif_trans_update(tp->netdev); 2452 2454 2453 2455 out_tx_fill: 2454 2456 return ret;