projects
/
linux-2.6-microblaze.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6900de5
)
net: netsec: enable pp skb recycling
author
Lorenzo Bianconi
<lorenzo@kernel.org>
Fri, 25 Feb 2022 15:29:51 +0000
(16:29 +0100)
committer
David 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
patch
|
blob
|
history
diff --git
a/drivers/net/ethernet/socionext/netsec.c
b/drivers/net/ethernet/socionext/netsec.c
index
556bd35
..
b0c5a44
100644
(file)
--- 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);