Skip to content

Commit 9dfd871

Browse files
Byungchul Parkkuba-moo
authored andcommitted
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 <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
1 parent c0bcfab commit 9dfd871

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/net/libeth/xdp.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1292,7 +1292,7 @@ static inline void libeth_xdp_prepare_buff(struct libeth_xdp_buff *xdp,
12921292
xdp_init_buff(&xdp->base, fqe->truesize, xdp->base.rxq);
12931293
#endif
12941294
xdp_prepare_buff(&xdp->base, page_address(page) + fqe->offset,
1295-
page->pp->p.offset, len, true);
1295+
pp_page_to_nmdesc(page)->pp->p.offset, len, true);
12961296
}
12971297

12981298
/**

0 commit comments

Comments
 (0)