]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
net: ti: icssg-prueth: access ->pp through netmem_desc instead of page
authorByungchul Park <byungchul@sk.com>
Mon, 21 Jul 2025 02:18:34 +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 icssg-prueth access ->pp through netmem_desc instead of page.

Signed-off-by: Byungchul Park <byungchul@sk.com>
Link: https://patch.msgid.link/20250721021835.63939-12-byungchul@sk.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/ti/icssg/icssg_prueth_sr1.c

index ff5f41bf499e34bb7a1d2351c89dba61367c5e96..5e225310c9deaf17a278420a0e10161301147d92 100644 (file)
@@ -367,7 +367,7 @@ static irqreturn_t prueth_rx_mgm_ts_thread_sr1(int irq, void *dev_id)
                return IRQ_NONE;
 
        prueth_tx_ts_sr1(emac, (void *)page_address(page));
-       page_pool_recycle_direct(page->pp, page);
+       page_pool_recycle_direct(pp_page_to_nmdesc(page)->pp, page);
 
        return IRQ_HANDLED;
 }
@@ -392,7 +392,7 @@ static irqreturn_t prueth_rx_mgm_rsp_thread(int irq, void *dev_id)
                complete(&emac->cmd_complete);
        }
 
-       page_pool_recycle_direct(page->pp, page);
+       page_pool_recycle_direct(pp_page_to_nmdesc(page)->pp, page);
 
        return IRQ_HANDLED;
 }