net: netsec: enable pp skb recycling
authorLorenzo Bianconi <lorenzo@kernel.org>
Fri, 25 Feb 2022 15:29:51 +0000 (16:29 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 28 Feb 2022 11:39:23 +0000 (11:39 +0000)
Similar to mvneta or mvpp2, enable page_pool skb recycling for netsec
dirver.

Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
Reviewed-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/socionext/netsec.c

index 556bd35..b0c5a44 100644 (file)
@@ -1044,7 +1044,7 @@ static int netsec_process_rx(struct netsec_priv *priv, int budget)
                                  "rx failed to build skb\n");
                        break;
                }
-               page_pool_release_page(dring->page_pool, page);
+               skb_mark_for_recycle(skb);
 
                skb_reserve(skb, xdp.data - xdp.data_hard_start);
                skb_put(skb, xdp.data_end - xdp.data);