Subject: Re: [PATCH net v2] xdp: update mem type when page pool is used for generic XDP

From: Jakub Kicinski <[email-masked]>
Date: Wed, 1 Oct 2025 08:27:37 -0700

On Wed, 1 Oct 2025 16:42:29 +0200 Maciej Fijalkowski wrote:
> Here we piggy back on sk_buff::pp_recycle setting as it implies underlying
> memory is backed by page pool.

skb->pp_recycle means that if the pages of the skb came from a pp then
the skb is holding a pp reference not a full page reference on those
pages. It does not mean that all pages of an skb came from pp.
In practice it may be equivalent, especially here. But I'm slightly
worried that checking pp_recycle will lead to confusion..