Re: [PATCH net-next v4 01/11] net: Allow const args for of page_to_netmem()

From
Mina Almasry <hidden>
Date
2025-06-12 04:53:01
Also in
linux-rdma, lkml
Reply to
Mark Bloch, 2025-06-10
On Tue, Jun 10, 2025 at 8:15 AM Mark Bloch [off-list ref] wrote:
From: Dragos Tatulea <dtatulea@nvidia.com>

This allows calling page_to_netmem() with a const page * argument.

Signed-off-by: Dragos Tatulea <dtatulea@nvidia.com>
Reviewed-by: Cosmin Ratiu <redacted>
Signed-off-by: Mark Bloch <mbloch@nvidia.com>
This is slightly better, it returns a const netmem_ref if const struct page:

https://lore.kernel.org/netdev/20250609043225.77229-6-byungchul@sk.com/ (local)

It's probably too much of a hassle to block your series until
Byungchul's change to this helper goes in for you, so this seems fine
to me in the interim.

Reviewed-by: Mina Almasry <redacted>

-- 
Thanks,
Mina
Thread (23 messages) 23 messages, 4 authors, last reply 2025-06-12
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help