linux/drivers/net/ethernet/amazon/ena
Hyeonggon Yoo 7354a426e0 net: ena: Do not waste napi skb cache
By profiling, discovered that ena device driver allocates skb by
build_skb() and frees by napi_skb_cache_put(). Because the driver
does not use napi skb cache in allocation path, napi skb cache is
periodically filled and flushed. This is waste of napi skb cache.

As ena_alloc_skb() is called only in napi, Use napi_build_skb()
and napi_alloc_skb() when allocating skb.

This patch was tested on aws a1.metal instance.

[ jwiedmann.dev@gmail.com: Use napi_alloc_skb() instead of
  netdev_alloc_skb_ip_align() to keep things consistent. ]

Signed-off-by: Hyeonggon Yoo <42.hyeyoo@gmail.com>
Acked-by: Shay Agroskin <shayagr@amazon.com>
Link: https://lore.kernel.org/r/YfUAkA9BhyOJRT4B@ip-172-31-19-208.ap-northeast-1.compute.internal
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2022-01-31 21:36:21 -08:00
..
ena_admin_defs.h net: ena: Add capabilities field with support for ENI stats capability 2022-01-07 19:25:50 -08:00
ena_com.c net: ena: Add capabilities field with support for ENI stats capability 2022-01-07 19:25:50 -08:00
ena_com.h net: ena: Add capabilities field with support for ENI stats capability 2022-01-07 19:25:50 -08:00
ena_common_defs.h net: ena: Change license into format to SPDX in all files 2020-09-21 13:54:22 -07:00
ena_eth_com.c net: ena: Improve error logging in driver 2021-06-08 14:41:09 -07:00
ena_eth_com.h net: ena: add device distinct log prefix to files 2020-12-09 15:26:40 -08:00
ena_eth_io_defs.h net: ena: Change license into format to SPDX in all files 2020-09-21 13:54:22 -07:00
ena_ethtool.c net: ena: Change the name of bad_csum variable 2022-01-07 19:25:51 -08:00
ena_netdev.c net: ena: Do not waste napi skb cache 2022-01-31 21:36:21 -08:00
ena_netdev.h net: ena: Extract recurring driver reset code into a function 2022-01-07 19:25:52 -08:00
ena_pci_id_tbl.h net: ena: Change license into format to SPDX in all files 2020-09-21 13:54:22 -07:00
ena_regs_defs.h net: ena: Change license into format to SPDX in all files 2020-09-21 13:54:22 -07:00
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00