Commit c0bcfabd authored by Byungchul Park's avatar Byungchul Park Committed by Jakub Kicinski
Browse files

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: default avatarByungchul Park <byungchul@sk.com>
Link: https://patch.msgid.link/20250721021835.63939-12-byungchul@sk.com


Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent 5445a5f7
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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;
}