On 12/10/24 03:29, Jakub Kicinski wrote:
On Wed, 4 Dec 2024 09:21:45 -0800 David Wei wrote:
From: Pavel Begunkov <asml.silence@xxxxxxxxx>
Add a helper that takes an array of pages and initialises passed in
memory provider's area with them, where each net_iov takes one page.
It's also responsible for setting up dma mappings.
We keep it in page_pool.c not to leak netmem details to outside
providers like io_uring, which don't have access to netmem_priv.h
and other private helpers.
User space will likely give us hugepages. Feels a bit wasteful to map
and manage them 4k at a time. But okay, we can optimize this later.
I killed the api and moved bits of it out of net/. If multiple pools
are expected, dma mapping and pp assigning need to happen at different
points in time, and having such api doesn't make sense.
--
Pavel Begunkov