Skip to contentSkip to conversation

eth: fbnic: access @pp through netmem_desc instead of page

PATCH Applied Byungchul Park 2 participants 2 messages Nov 20, 2025 – Nov 21, 2025

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

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

---
Changes from rfc:

	1. Use pp_page_to_nmdesc(page)->pp instead a wrong approach,
	   ring->page_pool. (feedbacked by Jakub)
---
 drivers/net/ethernet/meta/fbnic/fbnic_txrx.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/net/ethernet/meta/fbnic/fbnic_txrx.c +2 -1
index c2d7b67fec28..56744e3a14ec 100644
@@ -653,7 +653,8 @@ static void fbnic_clean_twq1(struct fbnic_napi_vector *nv, bool pp_allow_direct,
 				 FBNIC_TWD_TYPE_AL;
 		total_bytes += FIELD_GET(FBNIC_TWD_LEN_MASK, twd);
 
-		page_pool_put_page(page->pp, page, -1, pp_allow_direct);
+		page_pool_put_page(pp_page_to_nmdesc(page)->pp, page, -1,
+				   pp_allow_direct);
 next_desc:
 		head++;
 		head &= ring->size_mask;
Signature · 1 line
2.17.1
#1 lore raw
This patch was applied to netdev/net-next.git (main) by Jakub Kicinski <[email protected]>:

Hello:

This patch was applied to netdev/net-next.git (main) by Jakub Kicinski <[email protected]>:

Quoted 8 lines · On Thu, 20 Nov 2025 10:11:18 +0900 you wrote:

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

Make fbnic access @pp through netmem_desc instead of page.

[...]

Here is the summary with links:
- [net-next] eth: fbnic: access @pp through netmem_desc instead of page

    https://git.kernel.org/netdev/net-next/c/920fa394dcda

You are awesome, thank you!

Signature · 2 lines
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html