aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorByungchul Park <byungchul@sk.com>2025-07-21 11:18:31 +0900
committerJakub Kicinski <kuba@kernel.org>2025-07-23 17:46:55 -0700
commitc8d6830e32eb39dc872e56330e35de7cafe6d67a (patch)
tree4968e60230638c1c74fdff8dec726c420ced20a8
parentocteontx2-pf: access ->pp through netmem_desc instead of page (diff)
downloadwireguard-linux-c8d6830e32eb39dc872e56330e35de7cafe6d67a.tar.xz
wireguard-linux-c8d6830e32eb39dc872e56330e35de7cafe6d67a.zip
iavf: 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 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>
-rw-r--r--drivers/net/ethernet/intel/iavf/iavf_txrx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/intel/iavf/iavf_txrx.c b/drivers/net/ethernet/intel/iavf/iavf_txrx.c
index aaf70c625655..363c42bf3dcf 100644
--- a/drivers/net/ethernet/intel/iavf/iavf_txrx.c
+++ b/drivers/net/ethernet/intel/iavf/iavf_txrx.c
@@ -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;