Skip to content

Commit c0bcfab

Browse files
Byungchul Parkkuba-moo
authored andcommitted
net: ti: icssg-prueth: 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 icssg-prueth 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 5445a5f commit c0bcfab

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/net/ethernet/ti/icssg/icssg_prueth_sr1.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,7 @@ static irqreturn_t prueth_rx_mgm_ts_thread_sr1(int irq, void *dev_id)
367367
return IRQ_NONE;
368368

369369
prueth_tx_ts_sr1(emac, (void *)page_address(page));
370-
page_pool_recycle_direct(page->pp, page);
370+
page_pool_recycle_direct(pp_page_to_nmdesc(page)->pp, page);
371371

372372
return IRQ_HANDLED;
373373
}
@@ -392,7 +392,7 @@ static irqreturn_t prueth_rx_mgm_rsp_thread(int irq, void *dev_id)
392392
complete(&emac->cmd_complete);
393393
}
394394

395-
page_pool_recycle_direct(page->pp, page);
395+
page_pool_recycle_direct(pp_page_to_nmdesc(page)->pp, page);
396396

397397
return IRQ_HANDLED;
398398
}

0 commit comments

Comments
 (0)