Skip to contentSkip to conversation

ice: access @pp through netmem_desc instead of page

PATCH RESEND In review Byungchul Park 5 participants 8 messages Feb 24 – Apr 1

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH RESEND 1/1 ice: 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 ice driver access @pp through netmem_desc instead of page.

---
 drivers/net/ethernet/intel/ice/ice_ethtool.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/ethernet/intel/ice/ice_ethtool.c +1 -1
index c6bc29cfb8e6..c16e54dbe75b 100644
@@ -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++;
Signature · 1 line
2.17.1
#1 lore raw
Quoted 4 lines · Byungchul Park

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.

Hi Tony and Przemek,

Is there something that I'm missing or something wrong with this? Your feedback would be appreciated. Thanks!

Byungchul

Quoted 20 lines
---
 drivers/net/ethernet/intel/ice/ice_ethtool.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/ethernet/intel/ice/ice_ethtool.c +1 -1
index c6bc29cfb8e6..c16e54dbe75b 100644
@@ -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++;
Signature · 1 line
2.17.1
maintainer
#2 lore raw
Quoted 10 lines · Byungchul Park
Quoted 4 lines · Byungchul Park

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.

Hi Tony and Przemek,

Is there something that I'm missing or something wrong with this? Your feedback would be appreciated. Thanks!

Hi Byungchul,

Nothing wrong. I plan to apply it today.

Thanks,
Tony

Quoted 22 lines

Byungchul

Quoted 20 lines
---
  drivers/net/ethernet/intel/ice/ice_ethtool.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/ethernet/intel/ice/ice_ethtool.c +1 -1
index c6bc29cfb8e6..c16e54dbe75b 100644
@@ -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++;
Signature · 1 line
2.17.1
#3 lore raw
Quoted 7 lines · Tony Nguyen
Quoted 6 lines · Byungchul Park
Quoted 4 lines · Byungchul Park

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.

Quoted 8 lines
Quoted 4 lines

Hi Tony and Przemek,

Is there something that I'm missing or something wrong with this? Your feedback would be appreciated. Thanks!

Hi Byungchul,

Nothing wrong. I plan to apply it today.

Hi Tony,

Sorry bothering you but could you tell me where I can see the patch ready in a tree, maybe yours? I failed to locate it.

This patch is very important for the project removing pp fields from struct page to go ahead. Thanks in advance.

Byungchul

Quoted 25 lines

Thanks,
Tony

Quoted 22 lines

Byungchul

Quoted 20 lines
---
  drivers/net/ethernet/intel/ice/ice_ethtool.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/ethernet/intel/ice/ice_ethtool.c +1 -2
index c6bc29cfb8e6..c16e54dbe75b 100644
@@ -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

maintainer
#4 lore raw
Quoted 17 lines · Byungchul Park
Quoted 7 lines · Tony Nguyen
Quoted 6 lines · Byungchul Park
Quoted 4 lines · Byungchul Park

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.

Quoted 8 lines
Quoted 4 lines

Hi Tony and Przemek,

Is there something that I'm missing or something wrong with this? Your feedback would be appreciated. Thanks!

Hi Byungchul,

Nothing wrong. I plan to apply it today.

Quoted 7 lines

Hi Tony,

Sorry bothering you but could you tell me where I can see the patch ready in a tree, maybe yours? I failed to locate it.

This patch is very important for the project removing pp fields from struct page to go ahead. Thanks in advance.

Hi Byungchul,

I actually heard from my validation about this yesterday. They're seeing issues on the loopback test. We're working on isolating the problem to determine/ensure it wasn't due to this patch. Hopefully that will be done soon and, if not the problem, I'll get it sent out shortly thereafter.

Thanks,
Tony

Quoted 27 lines

Byungchul

Quoted 25 lines

Thanks,
Tony

Quoted 22 lines

Byungchul

Quoted 20 lines
---
   drivers/net/ethernet/intel/ice/ice_ethtool.c | 2 +-
   1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/ethernet/intel/ice/ice_ethtool.c +1 -2
index c6bc29cfb8e6..c16e54dbe75b 100644
@@ -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

Tested-by on v1 1/1
#5 lore raw
In reply to Byungchul Park
Quoted 8 lines

-----Original Message-----
From: Intel-wired-lan <[email protected]> On Behalf Of Byungchul Park
Sent: Monday, February 23, 2026 9:36 PM
To: [email protected]; [email protected]
Cc: [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; Nguyen, > Anthony L <[email protected]>; Kitszel, Przemyslaw <[email protected]>; [email protected]; [email protected]; [email protected]; [email protected]; intel-wired- [email protected]
Subject: [Intel-wired-lan] [RESEND PATCH] ice: access @pp through netmem_desc instead of page

Quoted 8 lines

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.

---
 drivers/net/ethernet/intel/ice/ice_ethtool.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Tested-by on v1 1/1
#6 lore raw
In reply to Byungchul Park
Quoted 7 lines

-----Original Message-----
From: Intel-wired-lan <[email protected]> On Behalf Of Byungchul Park
Sent: 24 February 2026 11:06
To: [email protected]; [email protected]
Cc: [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; Nguyen, Anthony L <[email protected]>; Kitszel, Przemyslaw <[email protected]>; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]
Subject: [Intel-wired-lan] [RESEND PATCH] ice: access @pp through netmem_desc instead of page

Quoted 9 lines

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.

---
drivers/net/ethernet/intel/ice/ice_ethtool.c | 2 +-

1 file changed, 1 insertion(+), 1 deletion(-)