Re: [PATCH net-next v9 1/2] page_pool: Move pp_magic check into helper functions

From
Toke Høiland-Jørgensen <hidden>
Date
2025-04-10 10:21:09
Also in
bpf, linux-mm, linux-rdma
Reply to
Zi Yan, 2025-04-10
"Zi Yan" [off-list ref] writes:
On Wed Apr 9, 2025 at 6:41 AM EDT, Toke Høiland-Jørgensen wrote:
quoted
Since we are about to stash some more information into the pp_magic
field, let's move the magic signature checks into a pair of helper
functions so it can be changed in one place.

Reviewed-by: Mina Almasry <redacted>
Tested-by: Yonglong Liu <redacted>
Acked-by: Jesper Dangaard Brouer <hawk@kernel.org>
Reviewed-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
Signed-off-by: Toke Høiland-Jørgensen <redacted>
---
 drivers/net/ethernet/mellanox/mlx5/core/en/xdp.c |  4 ++--
 include/linux/mm.h                               | 20 ++++++++++++++++++++
 mm/page_alloc.c                                  |  8 ++------
 net/core/netmem_priv.h                           |  5 +++++
 net/core/skbuff.c                                | 16 ++--------------
 net/core/xdp.c                                   |  4 ++--
 6 files changed, 33 insertions(+), 24 deletions(-)
LGTM. Reviewed-by: Zi Yan [off-list ref]
Great, thanks!

-Toke
Thread (13 messages) 13 messages, 6 authors, last reply 2025-06-20
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