bpf: Bloom filter map naming fixups
authorJoanne Koong <joannekoong@fb.com>
Fri, 29 Oct 2021 22:49:07 +0000 (15:49 -0700)
committerAlexei Starovoitov <ast@kernel.org>
Mon, 1 Nov 2021 21:16:03 +0000 (14:16 -0700)
commit6fdc348006fe2c8f0765f6eecf2e3cbab06c60b5
treede48219fb6645dad84835ddbe6acfdf8a7270977
parentf27a6fad14e24dfc755dfcdc08d9a3f514ddb593
bpf: Bloom filter map naming fixups

This patch has two changes in the kernel bloom filter map
implementation:

1) Change the names of map-ops functions to include the
"bloom_map" prefix.

As Martin pointed out on a previous patchset, having generic
map-ops names may be confusing in tracing and in perf-report.

2) Drop the "& 0xF" when getting nr_hash_funcs, since we
already ascertain that no other bits in map_extra beyond the
first 4 bits can be set.

Signed-off-by: Joanne Koong <joannekoong@fb.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Acked-by: Yonghong Song <yhs@fb.com>
Link: https://lore.kernel.org/bpf/20211029224909.1721024-2-joannekoong@fb.com
kernel/bpf/bloom_filter.c