Commit 87dda483 authored by Byungchul Park's avatar Byungchul Park Committed by Jakub Kicinski
Browse files

mt76: 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 mt76 access ->pp through netmem_desc instead of page.

Signed-off-by: default avatarByungchul Park <byungchul@sk.com>
Link: https://patch.msgid.link/20250721021835.63939-6-byungchul@sk.com


Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent 6fd82434
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -1810,7 +1810,8 @@ static inline void mt76_put_page_pool_buf(void *buf, bool allow_direct)
{
	struct page *page = virt_to_head_page(buf);

	page_pool_put_full_page(page->pp, page, allow_direct);
	page_pool_put_full_page(pp_page_to_nmdesc(page)->pp, page,
				allow_direct);
}

static inline void *