selftests/bpf: Add bloom filter map test cases
authorJoanne Koong <joannekoong@fb.com>
Wed, 27 Oct 2021 23:45:02 +0000 (16:45 -0700)
committerAlexei Starovoitov <ast@kernel.org>
Thu, 28 Oct 2021 20:22:49 +0000 (13:22 -0700)
commited9109ad643cfbe69670a37cdbaf2da9f409fed0
treefa54ee4bc3fd85ab532f16193ad6f8c155925524
parent47512102cde2d252d7b984d9675cfd3420b48ad9
selftests/bpf: Add bloom filter map test cases

This patch adds test cases for bpf bloom filter maps. They include tests
checking against invalid operations by userspace, tests for using the
bloom filter map as an inner map, and a bpf program that queries the
bloom filter map for values added by a userspace program.

Signed-off-by: Joanne Koong <joannekoong@fb.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Acked-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/20211027234504.30744-4-joannekoong@fb.com
tools/testing/selftests/bpf/prog_tests/bloom_filter_map.c [new file with mode: 0644]
tools/testing/selftests/bpf/progs/bloom_filter_map.c [new file with mode: 0644]