On 11/30/26 10:39, ha…@kernel.org wrote:
> From: Jesper Dangaard Brouer <ha…@kernel.org>
>
> On ARM64 servers (Ampere Altra Max) with threaded NAPI, veth TX queues
> can stall permanently. The peer rq has rx_notify_masked set while its
> NAPI is idle. Producers then skip scheduling NAPI, and nothing drains
> the ptr_ring. With a qdisc, the TXQ stays stopped, because of commit
> dc82a33297fc ("veth: apply qdisc backpressure on full ptr_ring to
> reduce TX drops"). Without a qdisc, veth silently drops all packets for
> that queue.
>
> The cause is a missing write barrier. __veth_xdp_flush() stores
> rx_notify_masked = true, then __napi_schedule() sets
> NAPI_STATE_SCHED_THREADED with a relaxed set_bit(). On ARM64 the second
> store can become visible first. An awake NAPI kthread on another CPU
> then runs a full poll and stores rx_notify_masked = false, and the late
> true store lands after it. Commit 68468d8c4cd4 ("veth: fix races around
> rq->rx_notify_masked") opened this window, when it moved
> napi_schedule_prep() before the store.
>
Nit: Please state in the comments what exactly the smp_wmb() pairs with
in napi_complete_done().
FYI: netdev/contest couldn't apply the series, see patchwork.
For the series:
Reviewed-by: Simon Schippers <simo…@tu-dortmund.de>