diff options
author | Lorenzo Bianconi <lorenzo@kernel.org> | 2022-02-25 16:29:51 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2022-02-28 12:39:23 +0100 |
commit | 6a4696c4284f758e8418e5507c3c757ecdf262a4 (patch) | |
tree | 16b0bff6c2a27224582e37d0ba184d9e0525f7aa /drivers/net/ethernet/socionext/netsec.c | |
parent | net/smc: Call trace_smc_tx_sendmsg when data corked (diff) | |
download | linux-6a4696c4284f758e8418e5507c3c757ecdf262a4.tar.xz linux-6a4696c4284f758e8418e5507c3c757ecdf262a4.zip |
net: netsec: enable pp skb recycling
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>
Diffstat (limited to 'drivers/net/ethernet/socionext/netsec.c')
-rw-r--r-- | drivers/net/ethernet/socionext/netsec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/socionext/netsec.c b/drivers/net/ethernet/socionext/netsec.c index 556bd353dd42..b0c5a44785fa 100644 --- a/drivers/net/ethernet/socionext/netsec.c +++ b/drivers/net/ethernet/socionext/netsec.c @@ -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); |