]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
ice: access @pp through netmem_desc instead of page
authorByungchul Park <byungchul@sk.com>
Fri, 1 May 2026 06:37:23 +0000 (23:37 -0700)
committerJakub Kicinski <kuba@kernel.org>
Sun, 3 May 2026 02:12:46 +0000 (19:12 -0700)
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>
Tested-by: Alexander Nowlin <alexander.nowlin@intel.com>
Tested-by: Rinitha S <sx.rinitha@intel.com>
Reviewed-by: David Hildenbrand (Arm) <david@kernel.org>
Signed-off-by: Jacob Keller <jacob.e.keller@intel.com>
Link: https://patch.msgid.link/20260430-jk-iwl-net-next-2026-04-30-v1-12-6f27ae1cd073@intel.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/intel/ice/ice_ethtool.c

index f28416a707d77c60033c0ddc982b1a83f15a02f6..236d293aba984a800d167832c1629aa5ded8fe55 100644 (file)
@@ -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++;