diff options
| author | Tariq Toukan <[email protected]> | 2023-02-16 00:09:10 +0000 |
|---|---|---|
| committer | Saeed Mahameed <[email protected]> | 2023-02-18 09:01:33 +0000 |
| commit | 53ee9142717714881fe0b4292b237e1707246f2c (patch) | |
| tree | fe73d164e0a73c277542bc63974f6d1e8a20ec9f /tools/testing/selftests/bpf/prog_tests/autoload.c | |
| parent | Merge ra.kernel.org:/pub/scm/linux/kernel/git/netdev/net (diff) | |
| download | kernel-53ee9142717714881fe0b4292b237e1707246f2c.tar.gz kernel-53ee9142717714881fe0b4292b237e1707246f2c.zip | |
net/mlx5e: Switch to using napi_build_skb()
Use napi_build_skb() which uses NAPI percpu caches to obtain
skbuff_head instead of inplace allocation.
napi_build_skb() calls napi_skb_cache_get(), which returns a cached
skb, or allocates a bulk of NAPI_SKB_CACHE_BULK (16) if cache is empty.
Performance test:
TCP single stream, single ring, single core, default MTU (1500B).
Before: 26.5 Gbits/sec
After: 30.1 Gbits/sec (+13.6%)
Signed-off-by: Tariq Toukan <[email protected]>
Reviewed-by: Gal Pressman <[email protected]>
Signed-off-by: Saeed Mahameed <[email protected]>
Reviewed-by: Maciej Fijalkowski <[email protected]>
Reviewed-by: Alexander Lobakin <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/autoload.c')
0 files changed, 0 insertions, 0 deletions
