Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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 <byungchul@sk.com>
Link: https://patch.msgid.link/20251120011118.73253-1-byungchul@sk.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>

authored by

Byungchul Park and committed by
Jakub Kicinski
920fa394 7043aa16

+2 -1
+2 -1
drivers/net/ethernet/meta/fbnic/fbnic_txrx.c
··· 653 653 FBNIC_TWD_TYPE_AL; 654 654 total_bytes += FIELD_GET(FBNIC_TWD_LEN_MASK, twd); 655 655 656 - page_pool_put_page(page->pp, page, -1, pp_allow_direct); 656 + page_pool_put_page(pp_page_to_nmdesc(page)->pp, page, -1, 657 + pp_allow_direct); 657 658 next_desc: 658 659 head++; 659 660 head &= ring->size_mask;