Commit 9dfd871a authored by Byungchul Park's avatar Byungchul Park Committed by Jakub Kicinski
Browse files

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: default avatarByungchul Park <byungchul@sk.com>
Link: https://patch.msgid.link/20250721021835.63939-13-byungchul@sk.com


Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent c0bcfabd
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);
}

/**