From: Jakub Kicinski Date: Thu, 20 Jul 2023 01:04:06 +0000 (-0700) Subject: eth: tsnep: let page recycling happen with skbs X-Git-Tag: v6.6.7~2079^2~351^2~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b03f68ba26c85671c6734b14ea37a5955b0fb8d3;p=platform%2Fkernel%2Flinux-starfive.git eth: tsnep: let page recycling happen with skbs tsnep builds an skb with napi_build_skb() and then calls page_pool_release_page() for the page in which that skb's head sits. Use recycling instead, recycling of heads works just fine. Reviewed-by: Yunsheng Lin Link: https://lore.kernel.org/r/20230720010409.1967072-2-kuba@kernel.org Reviewed-by: Alexander Lobakin Signed-off-by: Jakub Kicinski --- diff --git a/drivers/net/ethernet/engleder/tsnep_main.c b/drivers/net/ethernet/engleder/tsnep_main.c index 84751bb..079f9f6 100644 --- a/drivers/net/ethernet/engleder/tsnep_main.c +++ b/drivers/net/ethernet/engleder/tsnep_main.c @@ -1333,7 +1333,7 @@ static void tsnep_rx_page(struct tsnep_rx *rx, struct napi_struct *napi, skb = tsnep_build_skb(rx, page, length); if (skb) { - page_pool_release_page(rx->page_pool, page); + skb_mark_for_recycle(skb); rx->packets++; rx->bytes += length;