Files
linux/include/net
Byungchul Park db359fccf2 mm: introduce a new page type for page pool in page type
Currently, the condition 'page->pp_magic == PP_SIGNATURE' is used to
determine if a page belongs to a page pool.  However, with the planned
removal of @pp_magic, we should instead leverage the page_type in struct
page, such as PGTY_netpp, for this purpose.

Introduce and use the page type APIs e.g.  PageNetpp(), __SetPageNetpp(),
and __ClearPageNetpp() instead, and remove the existing APIs accessing
@pp_magic e.g.  page_pool_page_is_pp(), netmem_or_pp_magic(), and
netmem_clear_pp_magic().

Plus, add @page_type to struct net_iov at the same offset as struct page
so as to use the page_type APIs for struct net_iov as well.  While at it,
reorder @type and @owner in struct net_iov to avoid a hole and increasing
the struct size.

This work was inspired by the following link:

  https://lore.kernel.org/all/[email protected]/

While at it, move the sanity check for page pool to on the free path.

[[email protected]: gate the sanity check, per Johannes]
  Link: https://lkml.kernel.org/r/[email protected]
Link: https://lkml.kernel.org/r/[email protected]
Co-developed-by: Pavel Begunkov <[email protected]>
Signed-off-by: Pavel Begunkov <[email protected]>
Signed-off-by: Byungchul Park <[email protected]>
Suggested-by: David Hildenbrand <[email protected]>
Acked-by: David Hildenbrand <[email protected]>
Acked-by: Zi Yan <[email protected]>
Acked-by: Vlastimil Babka <[email protected]>
Reviewed-by: Toke Høiland-Jørgensen <[email protected]>
Acked-by: Mike Rapoport (Microsoft) <[email protected]>
Acked-by: Johannes Weiner <[email protected]>
Acked-by: Jakub Kicinski <[email protected]>
Acked-by: Jesper Dangaard Brouer <[email protected]>
Acked-by: Ilias Apalodimas <[email protected]>
Cc: Alexei Starovoitov <[email protected]>
Cc: Andrew Lunn <[email protected]>
Cc: Baolin Wang <[email protected]>
Cc: Brendan Jackman <[email protected]>
Cc: Christian Brauner <[email protected]>
Cc: Daniel Borkmann <[email protected]>
Cc: David S. Miller <[email protected]>
Cc: David Wei <[email protected]>
Cc: Dragos Tatulea <[email protected]>
Cc: Eric Dumazet <[email protected]>
Cc: John Fastabend <[email protected]>
Cc: Leon Romanovsky <[email protected]>
Cc: Liam Howlett <[email protected]>
Cc: Lorenzo Stoakes (Oracle) <[email protected]>
Cc: Mark Bloch <[email protected]>
Cc: Matthew Wilcox (Oracle) <[email protected]>
Cc: Michal Hocko <[email protected]>
Cc: Mina Almasry <[email protected]>
Cc: Paolo Abeni <[email protected]>
Cc: Saeed Mahameed <[email protected]>
Cc: Simon Horman <[email protected]>
Cc: Stanislav Fomichev <[email protected]>
Cc: Stehen Rothwell <[email protected]>
Cc: Suren Baghdasaryan <[email protected]>
Cc: Taehee Yoo <[email protected]>
Cc: Tariq Toukan <[email protected]>
Cc: Usama Arif <[email protected]>
Cc: Yu Zhao <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
2026-04-05 13:53:19 -07:00
..
2025-11-03 16:49:53 +09:00
2024-10-08 15:33:49 -07:00
…
2025-04-24 17:03:45 -07:00
2025-07-08 18:05:25 -07:00
…
…
…
…
…
…
…
…
2024-05-08 10:35:09 +01:00
…
2024-08-26 09:37:23 -07:00
2024-11-13 18:49:50 -08:00
2024-08-26 09:37:23 -07:00
…
…
2025-08-26 17:34:31 -07:00
…
…
2025-09-03 15:16:49 -07:00
…
2026-01-21 19:28:32 -08:00
…
2024-05-07 01:35:55 +02:00
…
2026-01-13 10:12:11 +01:00
2024-08-26 09:37:23 -07:00
…
…
2024-12-06 17:43:08 -08:00
…
2024-08-26 09:37:23 -07:00
…
…
…
…
…
2025-04-15 08:21:46 -07:00
…
…
…
2023-07-14 20:39:30 -07:00
…
…
2025-09-18 12:32:06 +02:00
…
2024-08-26 09:37:23 -07:00
2024-08-26 09:37:23 -07:00
2025-09-03 15:08:20 -07:00
2025-04-11 18:58:10 -07:00
…
2025-07-04 09:32:35 +02:00
2024-05-30 18:29:38 -07:00
…
2025-09-08 18:06:21 -07:00
2023-10-04 11:49:20 -07:00
…
2025-07-11 11:00:57 -07:00
…
2023-07-28 14:07:59 -07:00
…
…
2023-09-14 16:16:36 +02:00
…
2026-02-10 20:21:48 -08:00