From: Karlsson, Magnus <[email protected]>
Date: Wed, 18 Nov 2026 14:59:52 +0100

> Since commit 9ead7e74bfd6 ("ice: xsk: use Rx ring's XDP ring when picking
> NAPI context"), an Rx ring uses the XDP ring that is first on its queue
> vector's Tx ring list, both for XDP_TX and for AF_XDP zero-copy Tx. With
> fewer queue vectors than CPUs, a vector carries several XDP rings, so Rx
> ring N then does not use XDP ring N. ice_qp_dis(), ice_qp_ena() and the
> ring cleaning and stats reset they call still operate on
> vsi->xdp_rings[q_idx].

Breh, I've had this for some time already on my GitHub ([0], BTW you can
cross-check with my version) and have been planning to send this soon,
but you were first :D
Thanks!

> 
> As a result, a zero-copy pool is attached to and detached from an XDP ring
> that is never stopped, cleaned or reconfigured. At the same time, another
> XDP ring is stopped and cleaned, possibly while it is in use from another
> queue vector whose NAPI context keeps running.
[0]
https://github.com/alobakin/linux/commit/9fcdb9c92bf241254679c247b401c6500e21dddf

Thanks,
Olek

Reply via email to