All of lore.kernel.org
 help / color / mirror / Atom feed
* [Intel-wired-lan] [PATCH net-next] ice: access @pp through netmem_desc instead of page
@ 2025-12-16  4:07 ` Byungchul Park
  0 siblings, 0 replies; 13+ messages in thread
From: Byungchul Park @ 2025-12-16  4:07 UTC (permalink / raw)
  To: netdev, kuba
  Cc: linux-kernel, kernel_team, harry.yoo, david, willy, toke,
	asml.silence, almasrymina, anthony.l.nguyen, przemyslaw.kitszel,
	andrew+netdev, davem, edumazet, pabeni, intel-wired-lan

To eliminate the use of struct page in page pool, the page pool users
should use netmem descriptor and APIs instead.

Make ice driver access @pp through netmem_desc instead of page.

Signed-off-by: Byungchul Park <byungchul@sk.com>
---
 drivers/net/ethernet/intel/ice/ice_ethtool.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/net/ethernet/intel/ice/ice_ethtool.c b/drivers/net/ethernet/intel/ice/ice_ethtool.c
index 969d4f8f9c02..ae8a4e35cb10 100644
--- a/drivers/net/ethernet/intel/ice/ice_ethtool.c
+++ b/drivers/net/ethernet/intel/ice/ice_ethtool.c
@@ -1251,7 +1251,7 @@ static int ice_lbtest_receive_frames(struct ice_rx_ring *rx_ring)
 		rx_buf = &rx_ring->rx_fqes[i];
 		page = __netmem_to_page(rx_buf->netmem);
 		received_buf = page_address(page) + rx_buf->offset +
-			       page->pp->p.offset;
+			       pp_page_to_nmdesc(page)->pp->p.offset;
 
 		if (ice_lbtest_check_frame(received_buf))
 			valid_frames++;
-- 
2.17.1


^ permalink raw reply related	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2026-01-08 16:02 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-12-16  4:07 [Intel-wired-lan] [PATCH net-next] ice: access @pp through netmem_desc instead of page Byungchul Park
2025-12-16  4:07 ` Byungchul Park
2025-12-16  4:20 ` [Intel-wired-lan] " Matthew Wilcox
2025-12-16  4:20   ` Matthew Wilcox
2025-12-17 13:11   ` [Intel-wired-lan] " Pavel Begunkov
2025-12-17 13:11     ` Pavel Begunkov
2026-01-08 15:59     ` [Intel-wired-lan] " Alexander Lobakin
2025-12-17 11:46 ` Loktionov, Aleksandr
2025-12-17 11:46   ` Loktionov, Aleksandr
2025-12-17 13:15   ` Pavel Begunkov
2025-12-17 14:34     ` Loktionov, Aleksandr
2025-12-17 14:34       ` Loktionov, Aleksandr
2025-12-18  0:40       ` Byungchul Park

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.