]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
iavf: access ->pp through netmem_desc instead of page
authorByungchul Park <byungchul@sk.com>
Mon, 21 Jul 2025 02:18:31 +0000 (11:18 +0900)
committerJakub Kicinski <kuba@kernel.org>
Thu, 24 Jul 2025 00:46:55 +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 iavf access ->pp through netmem_desc instead of page.

Signed-off-by: Byungchul Park <byungchul@sk.com>
Link: https://patch.msgid.link/20250721021835.63939-9-byungchul@sk.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/intel/iavf/iavf_txrx.c

index aaf70c6256556285cd0dd52413115069aa736de4..363c42bf3dcfeeb84c70532598105ddb6882bc48 100644 (file)
@@ -1216,7 +1216,7 @@ static struct sk_buff *iavf_build_skb(const struct libeth_fqe *rx_buffer,
                                      unsigned int size)
 {
        struct page *buf_page = __netmem_to_page(rx_buffer->netmem);
-       u32 hr = buf_page->pp->p.offset;
+       u32 hr = pp_page_to_nmdesc(buf_page)->pp->p.offset;
        struct sk_buff *skb;
        void *va;