mbox series

[net-next,v2,0/1] net: lantiq_xrx200: use skb cache

Message ID 20220828191931.4923-1-olek2@wp.pl (mailing list archive)
Headers show
Series net: lantiq_xrx200: use skb cache | expand

Message

Aleksander Jan Bajkowski Aug. 28, 2022, 7:19 p.m. UTC
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(-)