mirror of
https://github.com/torvalds/linux.git
synced 2025-12-07 20:06:24 +00:00
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>
This commit is contained in:
committed by
Jakub Kicinski
parent
7043aa16f3
commit
920fa394dc
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user