eth: fbnic: access @pp through netmem_desc instead of page
Subsystems (4)
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.
Signed-off-by Byungchul Park <[email protected]>
---
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
@@ -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
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_descinstead of page.Signed-off-by Byungchul Park <[email protected]>[...]
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