mirror of
https://github.com/torvalds/linux.git
synced 2026-06-02 11:33:28 +02:00
octeontx2-pf: 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 octeontx2-pf access ->pp through netmem_desc instead of page. Signed-off-by: Byungchul Park <byungchul@sk.com> Link: https://patch.msgid.link/20250721021835.63939-8-byungchul@sk.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
parent
65589e860a
commit
58831a1785
|
|
@ -1571,7 +1571,7 @@ static bool otx2_xdp_rcv_pkt_handler(struct otx2_nic *pfvf,
|
|||
cq->pool_ptrs++;
|
||||
if (xsk_buff) {
|
||||
xsk_buff_free(xsk_buff);
|
||||
} else if (page->pp) {
|
||||
} else if (pp_page_to_nmdesc(page)->pp) {
|
||||
page_pool_recycle_direct(pool->page_pool, page);
|
||||
} else {
|
||||
otx2_dma_unmap_page(pfvf, iova, pfvf->rbsize,
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user