netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 net-next 0/2] add page_pool support for page recycling in veth driver
@ 2023-04-22 18:54 Lorenzo Bianconi
  2023-04-22 18:54 ` [PATCH v2 net-next 1/2] net: veth: add page_pool for page recycling Lorenzo Bianconi
                   ` (2 more replies)
  0 siblings, 3 replies; 15+ messages in thread
From: Lorenzo Bianconi @ 2023-04-22 18:54 UTC (permalink / raw)
  To: netdev
  Cc: bpf, lorenzo.bianconi, davem, edumazet, kuba, pabeni, hawk,
	john.fastabend, ast, daniel

Introduce page_pool support in veth driver in order to recycle pages in
veth_convert_skb_to_xdp_buff routine and avoid reallocating the skb through
the page allocator when we run a xdp program on the device and we receive
skbs from the stack.

Change since v1:
- remove page_pool checks in veth_convert_skb_to_xdp_buff() before allocating
  the pages
- recycle pages in the hot cache if build_skb fails in
  veth_convert_skb_to_xdp_buff()

Lorenzo Bianconi (2):
  net: veth: add page_pool for page recycling
  net: veth: add page_pool stats

 drivers/net/Kconfig |  2 ++
 drivers/net/veth.c  | 68 ++++++++++++++++++++++++++++++++++++++++-----
 2 files changed, 63 insertions(+), 7 deletions(-)

-- 
2.40.0


^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2023-04-25 14:19 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-04-22 18:54 [PATCH v2 net-next 0/2] add page_pool support for page recycling in veth driver Lorenzo Bianconi
2023-04-22 18:54 ` [PATCH v2 net-next 1/2] net: veth: add page_pool for page recycling Lorenzo Bianconi
2023-04-23 12:17   ` Yunsheng Lin
2023-04-23 14:20     ` Lorenzo Bianconi
2023-04-24  2:29       ` Yunsheng Lin
2023-04-24  9:17         ` Lorenzo Bianconi
2023-04-24 11:58           ` Yunsheng Lin
2023-04-24 13:04             ` Jesper Dangaard Brouer
2023-04-24 13:06             ` Lorenzo Bianconi
2023-04-24 13:10             ` Maciej Fijalkowski
2023-04-24 13:41               ` Lorenzo Bianconi
2023-04-25 11:19               ` Yunsheng Lin
2023-04-25 14:13                 ` Lorenzo Bianconi
2023-04-22 18:54 ` [PATCH v2 net-next 2/2] net: veth: add page_pool stats Lorenzo Bianconi
2023-04-25  1:10 ` [PATCH v2 net-next 0/2] add page_pool support for page recycling in veth driver patchwork-bot+netdevbpf

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).