Commit 5445a5f7 authored by Byungchul Park's avatar Byungchul Park Committed by Jakub Kicinski
Browse files

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: default avatarByungchul Park <byungchul@sk.com>
Link: https://patch.msgid.link/20250721021835.63939-11-byungchul@sk.com


Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent fc16f6a5
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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;