Re: [RFC v3 00/18] Split netmem from struct page

Alexander Lobakin
2025-05-30T15:04:43Z

From: Byungchul Park <byungchul@sk.com>
Date: Thu, 29 May 2025 12:29:03 +0900

> On Thu, May 29, 2025 at 12:10:29PM +0900, Byungchul Park wrote:
>> The MM subsystem is trying to reduce struct page to a single pointer.
>> The first step towards that is splitting struct page by its individual
>> users, as has already been done with folio and slab. This patchset does
>> that for netmem which is used for page pools.
>>
>> Matthew Wilcox tried and stopped the same work, you can see in:
>>
>> https://lore.kernel.org/linux-mm/20230111042214.907030-1-willy@infradead.org/
>>
>> Mina Almasry already has done a lot fo prerequisite works by luck, he
>> said :). I stacked my patches on the top of his work e.i. netmem.
>>
>> I focused on removing the page pool members in struct page this time,
>> not moving the allocation code of page pool from net to mm. It can be
>> done later if needed.
>>
>> The final patch removing the page pool fields will be submitted once
>> all the converting work of page to netmem are done:
>>
>> 1. converting of libeth_fqe by Tony Nguyen.

libeth_fqe will be fully converted to netmem when this PR is accepted:
[1], see the first patch of the series.
It didn't make it into this window as Jakub had a couple last-minute
questions, but I hope it will be merged to net-next in the first couple
weeks after net-next is open.

>> 2. converting of mlx5 by Tariq Toukan.

[1]
https://lore.kernel.org/netdev/20250520205920.2134829-1-anthony.l.nguyen@intel.com

Thanks,
Olek