Commit 833dcd75 authored by Mingj Ye's avatar Mingj Ye Committed by Jakub Kicinski
Browse files

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: default avatarMingj Ye <insyelu@gmail.com>
Reviewed-by: default avatarHayes Wang <hayeswang@realtek.com>
Link: https://patch.msgid.link/20260120015949.84996-1-insyelu@gmail.com


Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent 1802e907
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -2449,6 +2449,8 @@ static int r8152_tx_agg_fill(struct r8152 *tp, struct tx_agg *agg)
	ret = usb_submit_urb(agg->urb, GFP_ATOMIC);
	if (ret < 0)
		usb_autopm_put_interface_async(tp->intf);
	else
		netif_trans_update(tp->netdev);

out_tx_fill:
	return ret;