Re: [PATCH net-next v5 2/2] virtio_net: add page_pool support for buffer allocation

From: Jakub Kicinski

Date: Fri Feb 06 2026 - 23:41:55 EST


On Thu, 5 Feb 2026 16:27:15 -0800 Vishwanath Seshagiri wrote:
> + page = page_pool_alloc_frag(rq->page_pool, &offset, len + room, gfp);
> + if (unlikely(!page))
> return -ENOMEM;
>
> + buf = page_address(page) + offset;

Please take a look at page_pool_alloc_va()

I mean all the way down until you reach page_pool_alloc_netmem()
and realize the helper you're adding in patch 1 is a solved problem
--
pw-bot: cr