[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20250714120047.35901-13-byungchul@sk.com>
Date: Mon, 14 Jul 2025 21:00:47 +0900
From: Byungchul Park <byungchul@...com>
To: willy@...radead.org,
netdev@...r.kernel.org
Cc: linux-kernel@...r.kernel.org,
linux-mm@...ck.org,
kernel_team@...ynix.com,
almasrymina@...gle.com,
ilias.apalodimas@...aro.org,
harry.yoo@...cle.com,
akpm@...ux-foundation.org,
andrew+netdev@...n.ch,
asml.silence@...il.com,
toke@...hat.com,
david@...hat.com,
Liam.Howlett@...cle.com,
vbabka@...e.cz,
rppt@...nel.org,
surenb@...gle.com,
mhocko@...e.com,
linux-rdma@...r.kernel.org,
bpf@...r.kernel.org,
vishal.moola@...il.com,
hannes@...xchg.org,
ziy@...dia.com,
jackmanb@...gle.com,
wei.fang@....com,
shenwei.wang@....com,
xiaoning.wang@....com,
davem@...emloft.net,
edumazet@...gle.com,
kuba@...nel.org,
pabeni@...hat.com,
anthony.l.nguyen@...el.com,
przemyslaw.kitszel@...el.com,
sgoutham@...vell.com,
gakula@...vell.com,
sbhatta@...vell.com,
hkelam@...vell.com,
bbhushan2@...vell.com,
tariqt@...dia.com,
ast@...nel.org,
daniel@...earbox.net,
hawk@...nel.org,
john.fastabend@...il.com,
sdf@...ichev.me,
saeedm@...dia.com,
leon@...nel.org,
mbloch@...dia.com,
danishanwar@...com,
rogerq@...nel.org,
nbd@....name,
lorenzo@...nel.org,
ryder.lee@...iatek.com,
shayne.chen@...iatek.com,
sean.wang@...iatek.com,
matthias.bgg@...il.com,
angelogioacchino.delregno@...labora.com,
aleksander.lobakin@...el.com,
horms@...nel.org,
m-malladi@...com,
krzysztof.kozlowski@...aro.org,
matthias.schiffer@...tq-group.com,
robh@...nel.org,
imx@...ts.linux.dev,
intel-wired-lan@...ts.osuosl.org,
linux-arm-kernel@...ts.infradead.org,
linux-wireless@...r.kernel.org,
linux-mediatek@...ts.infradead.org
Subject: [PATCH net-next v10 12/12] 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@...com>
---
include/net/libeth/xdp.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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);
}
/**
--
2.17.1
Powered by blists - more mailing lists