]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
eth: fbnic: access @pp through netmem_desc instead of page
authorByungchul Park <byungchul@sk.com>
Thu, 20 Nov 2025 01:11:18 +0000 (10:11 +0900)
committerJakub Kicinski <kuba@kernel.org>
Fri, 21 Nov 2025 02:45:27 +0000 (18:45 -0800)
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>
drivers/net/ethernet/meta/fbnic/fbnic_txrx.c

index c2d7b67fec286d4e788761e62e459e58fc405cf0..56744e3a14ec41e6e2a0035619cdb4083de985c2 100644 (file)
@@ -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;