aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorByungchul Park <byungchul@sk.com>2025-07-21 11:18:28 +0900
committerJakub Kicinski <kuba@kernel.org>2025-07-23 17:46:54 -0700
commit87dda483e63f6286288d75eb3beb58b3db37ee2e (patch)
treeff983d12fde4b284bba8adbba7dc311df6e4870b
parentnetdevsim: access ->pp through netmem_desc instead of page (diff)
downloadwireguard-linux-87dda483e63f6286288d75eb3beb58b3db37ee2e.tar.xz
wireguard-linux-87dda483e63f6286288d75eb3beb58b3db37ee2e.zip
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: Byungchul Park <byungchul@sk.com> Link: https://patch.msgid.link/20250721021835.63939-6-byungchul@sk.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
-rw-r--r--drivers/net/wireless/mediatek/mt76/mt76.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/wireless/mediatek/mt76/mt76.h b/drivers/net/wireless/mediatek/mt76/mt76.h
index 2912568612bc..8dd5c29fb75b 100644
--- a/drivers/net/wireless/mediatek/mt76/mt76.h
+++ b/drivers/net/wireless/mediatek/mt76/mt76.h
@@ -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 *