diff options
author | Joanne Koong <joannekoong@fb.com> | 2021-10-29 15:49:09 -0700 |
---|---|---|
committer | Alexei Starovoitov <ast@kernel.org> | 2021-11-01 14:16:03 -0700 |
commit | 7a67087250f0003acc1b9e20eda01635e1e51f9a (patch) | |
tree | 0aa974eb45a14bdf059b733702ac35caee42134d /net/switchdev/switchdev.c | |
parent | 8845b4681bf44b9d2d2badf2c67cf476e42a86bd (diff) |
selftests/bpf: Add bloom map success test for userspace calls
This patch has two changes:
1) Adds a new function "test_success_cases" to test
successfully creating + adding + looking up a value
in a bloom filter map from the userspace side.
2) Use bpf_create_map instead of bpf_create_map_xattr in
the "test_fail_cases" and test_inner_map to make the
code look cleaner.
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-4-joannekoong@fb.com
Diffstat (limited to 'net/switchdev/switchdev.c')
0 files changed, 0 insertions, 0 deletions