mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-01-12 01:20:14 +00:00
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>
This commit is contained in:
parent
c0bcfabd77
commit
9dfd871a3e
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user