[PATCH net 0/2] veth: fix txqs that are never woken after backpressure
From: Simon Schippers
Date: Fri Nov 13 2026 - 07:09:29 EST
While debugging the veth BQL series [1], I found two ways in which a veth
txq that veth_xmit() stopped on a full ptr_ring is never woken again.
Patch 1 lets veth_poll() wake txqs beyond real_num_tx_queues, as a txq
stopped before a TX channel shrink is otherwise left stopped.
Patch 2 wakes the peer txq when NAPI is deleted, as veth_xmit() can stop
it after the last poll.
The reproducers are below the --- of each patch. Patch 1 reproduces
without changes to the kernel, patch 2 needs a debug-only udelay() to
widen the race window.
Claude Opus 5.5 was used heavily for this series, to find and reproduce
both bugs and to write the patches.
[1] https://lore.kernel.org/netdev/20260612083530.1650245-1-hawk@xxxxxxxxxx/
Simon Schippers (2):
veth: wake a stopped peer txq beyond real_num_tx_queues
veth: wake the peer txq when deleting NAPI
drivers/net/veth.c | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
base-commit: ead6fa9a0ab194f02a2f36d634b193e9c5f9a1c6
--
2.43.0