Files
linux-stable-mirror/include/linux
Byungchul Park 89ade7c730 netmem, mlx4: access ->pp_ref_count through netmem_desc instead of page
To eliminate the use of struct page in page pool, the page pool users
should use netmem descriptor and APIs instead.

Make mlx4 access ->pp_ref_count through netmem_desc instead of page.

While at it, add a helper, pp_page_to_nmdesc() and __pp_page_to_nmdesc(),
that can be used to get netmem_desc from page only if it's a pp page.
For now that netmem_desc overlays on page, it can be achieved by just
casting, and use macro and _Generic to cover const casting as well.

Plus, change page_pool_page_is_pp() to check for 'const struct page *'
instead of 'struct page *' since it doesn't modify data and additionally
covers const type.

Signed-off-by: Byungchul Park <byungchul@sk.com>
Link: https://patch.msgid.link/20250721021835.63939-4-byungchul@sk.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2025-07-23 17:46:54 -07:00
..
2025-06-27 16:38:02 -07:00
2025-06-17 18:18:46 -07:00
2025-06-17 18:18:46 -07:00
2025-07-09 19:32:30 -07:00
2025-07-08 08:37:15 -07:00
2025-07-21 17:48:32 -07:00
2025-06-19 12:36:19 +02:00
2025-07-08 18:04:58 +02:00