]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
mt76: access ->pp through netmem_desc instead of page
authorByungchul Park <byungchul@sk.com>
Mon, 21 Jul 2025 02:18:28 +0000 (11:18 +0900)
committerJakub Kicinski <kuba@kernel.org>
Thu, 24 Jul 2025 00:46:54 +0000 (17:46 -0700)
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: Byungchul Park <byungchul@sk.com>
Link: https://patch.msgid.link/20250721021835.63939-6-byungchul@sk.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/wireless/mediatek/mt76/mt76.h

index 2912568612bc2ca8aa0ba2b2d88764dfcd3c8867..8dd5c29fb75b5c0c879350f3af15b71f12630a96 100644 (file)
@@ -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 *