]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
octeontx2-pf: access ->pp through netmem_desc instead of page
authorByungchul Park <byungchul@sk.com>
Mon, 21 Jul 2025 02:18:30 +0000 (11:18 +0900)
committerJakub Kicinski <kuba@kernel.org>
Thu, 24 Jul 2025 00:46:55 +0000 (17:46 -0700)
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>
drivers/net/ethernet/marvell/octeontx2/nic/otx2_txrx.c

index 99ace381cc78658a5e9253df6413a4d33f0be813..625bb5a05344c0b6521c28fc28e7390553bc8f84 100644 (file)
@@ -1571,7 +1571,7 @@ handle_xdp_verdict:
                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,