Re: [PATCH net-next v5 2/2] virtio_net: add page_pool support for buffer allocation
From: Vishwanath Seshagiri <hidden>
Date: 2026-02-07 05:26:13
Also in:
lkml, virtualization
From: Vishwanath Seshagiri <hidden>
Date: 2026-02-07 05:26:13
Also in:
lkml, virtualization
On 2/6/26 8:41 PM, Jakub Kicinski wrote:
On Thu, 5 Feb 2026 16:27:15 -0800 Vishwanath Seshagiri wrote:quoted
+ 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
I apologize for adding patch 1. I will use page_pool_alloc_va and send v6 with only patch 2.