summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorSimon Schippers <simon.schippers@tu-dortmund.de>2026-11-13 11:46:48 +0100
committerPaolo Abeni <pabeni@redhat.com>2026-11-19 11:50:59 +0100
commitb2f4c44d7d83770ee1f235a732d8e1fd831c4926 (patch)
treee065e0eb52a589b8e4accaa36254835e6d4b0221 /tools/perf/scripts/python
parent8a0b03058ff700deb74f4b38f5a254238bdf4e07 (diff)
veth: wake the peer txq when deleting NAPI
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. If veth_xmit() stops the txq after the last poll before napi_disable(), its __veth_xdp_flush() can no longer schedule NAPI. Nothing wakes the txq, also not after NAPI is added back, so the device stops transmitting for good. This can happen whenever the peer deletes its NAPI: when it goes down, turns GRO off, detaches XDP or reduces its RX channels. Wake the peer txq in veth_napi_del_range() once NAPI is deleted, also when the peer is down, as opening it does not restart its queues. Reproduced in virtme-ng with a pktgen flood while toggling GRO on the peer, with a udelay() before netif_tx_stop_queue() to widen the race: the txq got stuck within four toggles without this patch, and not in 300 with it. Without the udelay() it was not hit in 1200 toggles. Fixes: dc82a33297fc ("veth: apply qdisc backpressure on full ptr_ring to reduce TX drops") 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-3-simon.schippers@tu-dortmund.de Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions