To eliminate the use of struct page in page pool, the page pool users
should use netmem descriptor and APIs instead.
Make fbnic access @pp through netmem_desc instead of page.
Signed-off-by: Byungchul Park <byungchul@sk.com>
---
Changes from rfc:
1. Use pp_page_to_nmdesc(page)->pp instead a wrong approach,
ring->page_pool. (feedbacked by Jakub)
---
drivers/net/ethernet/meta/fbnic/fbnic_txrx.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/net/ethernet/meta/fbnic/fbnic_txrx.c b/drivers/net/ethernet/meta/fbnic/fbnic_txrx.c
index c2d7b67fec28..56744e3a14ec 100644
--- a/drivers/net/ethernet/meta/fbnic/fbnic_txrx.c
+++ b/drivers/net/ethernet/meta/fbnic/fbnic_txrx.c
@@ -653,7 +653,8 @@ static void fbnic_clean_twq1(struct fbnic_napi_vector *nv, bool pp_allow_direct,
FBNIC_TWD_TYPE_AL;
total_bytes += FIELD_GET(FBNIC_TWD_LEN_MASK, twd);
- page_pool_put_page(page->pp, page, -1, pp_allow_direct);
+ page_pool_put_page(pp_page_to_nmdesc(page)->pp, page, -1,
+ pp_allow_direct);
next_desc:
head++;
head &= ring->size_mask;
--
2.17.1