aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorByungchul Park <byungchul@sk.com>2025-07-21 11:18:35 +0900
committerJakub Kicinski <kuba@kernel.org>2025-07-23 17:46:56 -0700
commit9dfd871a3e2ed433d5fee519b90b7e619b972043 (patch)
tree3c490f7ca7c4f520a1781860d11f882e2c8a191e
parentnet: ti: icssg-prueth: access ->pp through netmem_desc instead of page (diff)
downloadwireguard-linux-9dfd871a3e2ed433d5fee519b90b7e619b972043.tar.xz
wireguard-linux-9dfd871a3e2ed433d5fee519b90b7e619b972043.zip
libeth: xdp: access ->pp 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 xdp access ->pp through netmem_desc instead of page. Signed-off-by: Byungchul Park <byungchul@sk.com> Link: https://patch.msgid.link/20250721021835.63939-13-byungchul@sk.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
-rw-r--r--include/net/libeth/xdp.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/net/libeth/xdp.h b/include/net/libeth/xdp.h
index 6ce6aec6884c..f4880b50e804 100644
--- a/include/net/libeth/xdp.h
+++ b/include/net/libeth/xdp.h
@@ -1292,7 +1292,7 @@ static inline void libeth_xdp_prepare_buff(struct libeth_xdp_buff *xdp,
xdp_init_buff(&xdp->base, fqe->truesize, xdp->base.rxq);
#endif
xdp_prepare_buff(&xdp->base, page_address(page) + fqe->offset,
- page->pp->p.offset, len, true);
+ pp_page_to_nmdesc(page)->pp->p.offset, len, true);
}
/**