We must count all Tx attempts in order to avoid the Tx shadow
timeout handler resetting Tx ring pointers when it shouldn't.
-/* $OpenBSD: qwx.c,v 1.25 2024/02/08 14:31:53 stsp Exp $ */
+/* $OpenBSD: qwx.c,v 1.26 2024/02/08 14:33:40 stsp Exp $ */
/*
* Copyright 2023 Stefan Sperling <stsp@openbsd.org>
if (!sc->hw_params.supports_shadow_regs)
return;
+ update_timer->tx_num++;
+ if (update_timer->started)
+ return;
+
update_timer->started = 1;
update_timer->timer_tx_num = update_timer->tx_num;