[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <aB5b_FmBlcqQk09l@casper.infradead.org>
Date: Fri, 9 May 2025 20:48:12 +0100
From: Matthew Wilcox <willy@...radead.org>
To: Mina Almasry <almasrymina@...gle.com>
Cc: Byungchul Park <byungchul@...com>, netdev@...r.kernel.org,
linux-kernel@...r.kernel.org, linux-mm@...ck.org,
kernel_team@...ynix.com, kuba@...nel.org,
ilias.apalodimas@...aro.org, harry.yoo@...cle.com, hawk@...nel.org,
akpm@...ux-foundation.org, ast@...nel.org, daniel@...earbox.net,
davem@...emloft.net, john.fastabend@...il.com,
andrew+netdev@...n.ch, edumazet@...gle.com, pabeni@...hat.com,
vishal.moola@...il.com
Subject: Re: [RFC 19/19] mm, netmem: remove the page pool members in struct
page
On Fri, May 09, 2025 at 12:04:37PM -0700, Mina Almasry wrote:
> Right, all I'm saying is that if it's at all possible to keep net_iov
> something that can be extended with fields unrelated to struct page,
> lets do that. net_iov already has fields that should not belong in
> struct page like net_iov_owner and I think more will be added.
Sure, that's fine.
> I'm thinking netmem_desc can be the fields that are shared between
> struct net_iov and struct page (but both can have more specific to the
> different memory types). As you say, for now netmem_desc can currently
> overlap fields in struct page and struct net_iov, and a follow up
> change can replace it with something that gets kmalloced and (I
> guess?) there is a pointer in struct page or struct net_iov that
> refers to the netmem_desc that contains the shared fields.
I'm sure I've pointed you at
https://kernelnewbies.org/MatthewWilcox/Memdescs before.
But I wouldn't expect to have net_iov contain a pointer to netmem_desc,
rather it would embed a netmem_desc. Unless there's a good reason to
separate them.
Actually, I'd hope to do away with net_iov entirely. Networking should
handle memory-on-PCI-devices the same way everybody else does (as
hotplugged memory) rather than with its own special structures.
Powered by blists - more mailing lists