summaryrefslogtreecommitdiff
path: root/rust/kernel
diff options
context:
space:
mode:
authorSimon Schippers <simon.schippers@tu-dortmund.de>2026-11-13 11:46:47 +0100
committerPaolo Abeni <pabeni@redhat.com>2026-11-19 11:50:44 +0100
commit8a0b03058ff700deb74f4b38f5a254238bdf4e07 (patch)
treed0f6114274593e917f360ad458a05420ea55662b /rust/kernel
parente203d8a4751d48aa00eda31e3b320ba8e0d47dbf (diff)
veth: wake a stopped peer txq beyond real_num_tx_queues
Since commit dc82a33297fc ("veth: apply qdisc backpressure on full ptr_ring to reduce TX drops"), only the peer's veth_poll() wakes a txq that veth_xmit() stopped on a full ptr_ring. veth_poll() skips txqs at or above the peer's real_num_tx_queues. If the peer shrinks its TX channels while such a txq is stopped, nothing wakes it. netif_set_real_num_tx_queues() keeps its state, so once the channels are grown back, its first skb is requeued forever. With a single root qdisc this blocks all transmission of the device. Look the txq up below num_tx_queues instead. Waking a txq that is not in use is harmless. Reproduced in virtme-ng with a UDP flood from veth0 into veth1, which has GRO, while switching veth0 between one and two TX channels: without this patch veth0 stopped transmitting within 11 cycles in 3 of 3 runs, with it veth0 kept transmitting through 30 cycles in 3 of 3 runs. Fixes: 08f566e8f83b ("veth: fix OOB txq access in veth_poll() with asymmetric queue counts") Signed-off-by: Simon Schippers <simon.schippers@tu-dortmund.de> Reviewed-by: Tianyi Gao <tianyi@cloudflare.com> Tested-by: Tianyi Gao <tianyi@cloudflare.com> Link: https://patch.msgid.link/20261113104648.225983-2-simon.schippers@tu-dortmund.de Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Diffstat (limited to 'rust/kernel')
0 files changed, 0 insertions, 0 deletions