diff options
author | 2022-09-02 14:10:51 -0700 | |
---|---|---|
committer | 2022-09-05 15:33:06 +0200 | |
commit | 8d5a8011b35d387c490a5c977b1d9eb4798aa071 (patch) | |
tree | 83f515cd987e8a9209f74a1941cc12df0fa0cb71 /drivers/net/dsa | |
parent | bpf: Adjust low/high watermarks in bpf_mem_cache (diff) | |
download | linux-dev-8d5a8011b35d387c490a5c977b1d9eb4798aa071.tar.xz linux-dev-8d5a8011b35d387c490a5c977b1d9eb4798aa071.zip |
bpf: Batch call_rcu callbacks instead of SLAB_TYPESAFE_BY_RCU.
SLAB_TYPESAFE_BY_RCU makes kmem_caches non mergeable and slows down
kmem_cache_destroy. All bpf_mem_cache are safe to share across different maps
and programs. Convert SLAB_TYPESAFE_BY_RCU to batched call_rcu. This change
solves the memory consumption issue, avoids kmem_cache_destroy latency and
keeps bpf hash map performance the same.
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Kumar Kartikeya Dwivedi <memxor@gmail.com>
Acked-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/20220902211058.60789-10-alexei.starovoitov@gmail.com
Diffstat (limited to 'drivers/net/dsa')
0 files changed, 0 insertions, 0 deletions