netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net-next v2 0/1] net: lantiq_xrx200: use skb cache
@ 2022-08-28 19:19 Aleksander Jan Bajkowski
  2022-08-28 19:19 ` [PATCH net-next v2 1/1] " Aleksander Jan Bajkowski
  0 siblings, 1 reply; 3+ messages in thread
From: Aleksander Jan Bajkowski @ 2022-08-28 19:19 UTC (permalink / raw)
  To: hauke, davem, edumazet, kuba, pabeni, netdev, linux-kernel
  Cc: Aleksander Jan Bajkowski

napi_build_skb() reuses NAPI skbuff_head cache in order to save some
cycles on freeing/allocating skbuff_heads on every new Rx or completed
Tx.
Use napi_consume_skb() to feed the cache with skbuff_heads of completed
Tx. The budget parameter is added to indicate NAPI context, as a value
of zero can be passed in the case of netpoll.

Changelog:

  v2:
  - rebased patch to avoid conflicts

Aleksander Jan Bajkowski (1):
  net: lantiq_xrx200: use skb cache

 drivers/net/ethernet/lantiq_xrx200.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

-- 
2.30.2


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

end of thread, other threads:[~2022-08-31 19:23 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-08-28 19:19 [PATCH net-next v2 0/1] net: lantiq_xrx200: use skb cache Aleksander Jan Bajkowski
2022-08-28 19:19 ` [PATCH net-next v2 1/1] " Aleksander Jan Bajkowski
2022-08-31 19:23   ` Jakub Kicinski

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).