]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
libeth: xdp: access ->pp through netmem_desc instead of page
authorByungchul Park <byungchul@sk.com>
Mon, 21 Jul 2025 02:18:35 +0000 (11:18 +0900)
committerJakub Kicinski <kuba@kernel.org>
Thu, 24 Jul 2025 00:46:56 +0000 (17:46 -0700)
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>
include/net/libeth/xdp.h

index 6ce6aec6884ca520715bb2d5bdba73cf861247a8..f4880b50e804c27d719feaed82c1ec9c8f8039aa 100644 (file)
@@ -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);
 }
 
 /**