Commit 6a4696c4 authored by Lorenzo Bianconi's avatar Lorenzo Bianconi Committed by David S. Miller

net: netsec: enable pp skb recycling

Similar to mvneta or mvpp2, enable page_pool skb recycling for netsec
dirver.
Signed-off-by: default avatarLorenzo Bianconi <lorenzo@kernel.org>
Reviewed-by: default avatarIlias Apalodimas <ilias.apalodimas@linaro.org>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 6900de50
...@@ -1044,7 +1044,7 @@ static int netsec_process_rx(struct netsec_priv *priv, int budget) ...@@ -1044,7 +1044,7 @@ static int netsec_process_rx(struct netsec_priv *priv, int budget)
"rx failed to build skb\n"); "rx failed to build skb\n");
break; break;
} }
page_pool_release_page(dring->page_pool, page); skb_mark_for_recycle(skb);
skb_reserve(skb, xdp.data - xdp.data_hard_start); skb_reserve(skb, xdp.data - xdp.data_hard_start);
skb_put(skb, xdp.data_end - xdp.data); skb_put(skb, xdp.data_end - xdp.data);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment