mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-10 06:49:29 -04:00
mlx5: 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 mlx5 access ->pp through netmem_desc instead of page. Signed-off-by: Byungchul Park <byungchul@sk.com> Link: https://patch.msgid.link/20250721021835.63939-11-byungchul@sk.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
committed by
Jakub Kicinski
parent
fc16f6a587
commit
5445a5f712
@@ -710,7 +710,8 @@ static void mlx5e_free_xdpsq_desc(struct mlx5e_xdpsq *sq,
|
||||
/* No need to check page_pool_page_is_pp() as we
|
||||
* know this is a page_pool page.
|
||||
*/
|
||||
page_pool_recycle_direct(page->pp, page);
|
||||
page_pool_recycle_direct(pp_page_to_nmdesc(page)->pp,
|
||||
page);
|
||||
} while (++n < num);
|
||||
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user