mirror of
https://github.com/torvalds/linux.git
synced 2026-06-02 11:33:28 +02:00
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>
This commit is contained in:
parent
6fd824342a
commit
87dda483e6
|
|
@ -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 *
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user