diff options
| author | Simon Schippers <simon.schippers@tu-dortmund.de> | 2026-11-13 11:46:48 +0100 |
|---|---|---|
| committer | Paolo Abeni <pabeni@redhat.com> | 2026-11-19 11:50:59 +0100 |
| commit | b2f4c44d7d83770ee1f235a732d8e1fd831c4926 (patch) | |
| tree | e065e0eb52a589b8e4accaa36254835e6d4b0221 /rust/kernel/alloc/allocator | |
| parent | 8a0b03058ff700deb74f4b38f5a254238bdf4e07 (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 'rust/kernel/alloc/allocator')
0 files changed, 0 insertions, 0 deletions
