]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit879b3976f18d8f14a91f6d96ecf168f466f887c2
treefa54ee4bc3fd85ab532f16193ad6f8c155925524
parent44ec321ad7de19a688680f0608e8f9e2a91237ed
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]