linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net-next] eth: fbnic: access @pp through netmem_desc instead of page
@ 2025-11-20  1:11 Byungchul Park
  2025-11-21  2:50 ` patchwork-bot+netdevbpf
  0 siblings, 1 reply; 2+ messages in thread
From: Byungchul Park @ 2025-11-20  1:11 UTC (permalink / raw)
  To: kuba, netdev
  Cc: linux-kernel, linux-mm, kernel_team, harry.yoo, hawk,
	andrew+netdev, david, lorenzo.stoakes, Liam.Howlett, vbabka, ziy,
	willy, toke, asml.silence, alexanderduyck, kernel-team, davem,
	edumazet, pabeni, mohsin.bashr, almasrymina

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 <byungchul@sk.com>
---
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(-)

diff --git a/drivers/net/ethernet/meta/fbnic/fbnic_txrx.c b/drivers/net/ethernet/meta/fbnic/fbnic_txrx.c
index c2d7b67fec28..56744e3a14ec 100644
--- a/drivers/net/ethernet/meta/fbnic/fbnic_txrx.c
+++ b/drivers/net/ethernet/meta/fbnic/fbnic_txrx.c
@@ -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;
-- 
2.17.1



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

* Re: [PATCH net-next] eth: fbnic: access @pp through netmem_desc instead of page
  2025-11-20  1:11 [PATCH net-next] eth: fbnic: access @pp through netmem_desc instead of page Byungchul Park
@ 2025-11-21  2:50 ` patchwork-bot+netdevbpf
  0 siblings, 0 replies; 2+ messages in thread
From: patchwork-bot+netdevbpf @ 2025-11-21  2:50 UTC (permalink / raw)
  To: Byungchul Park
  Cc: kuba, netdev, linux-kernel, linux-mm, kernel_team, harry.yoo,
	hawk, andrew+netdev, david, lorenzo.stoakes, Liam.Howlett,
	vbabka, ziy, willy, toke, asml.silence, alexanderduyck,
	kernel-team, davem, edumazet, pabeni, mohsin.bashr, almasrymina

Hello:

This patch was applied to netdev/net-next.git (main)
by Jakub Kicinski <kuba@kernel.org>:

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.
> 
> Signed-off-by: Byungchul Park <byungchul@sk.com>
> 
> [...]

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!
-- 
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html




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

end of thread, other threads:[~2025-11-21  2:51 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-11-20  1:11 [PATCH net-next] eth: fbnic: access @pp through netmem_desc instead of page Byungchul Park
2025-11-21  2:50 ` patchwork-bot+netdevbpf

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox