linux/tools/testing/selftests/bpf
David Herrmann 4d3381f5a3 bpf: Add tests for the lpm trie map
The first part of this program runs randomized tests against the
lpm-bpf-map. It implements a "Trivial Longest Prefix Match" (tlpm)
based on simple, linear, single linked lists. The implementation
should be pretty straightforward.

Based on tlpm, this inserts randomized data into bpf-lpm-maps and
verifies the trie-based bpf-map implementation behaves the same way
as tlpm.

The second part uses 'real world' IPv4 and IPv6 addresses and tests
the trie with those.

Signed-off-by: David Herrmann <dh.herrmann@gmail.com>
Signed-off-by: Daniel Mack <daniel@zonque.org>
Acked-by: Alexei Starovoitov <ast@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
2017-01-23 16:10:38 -05:00
..
.gitignore bpf: Add tests for the lpm trie map 2017-01-23 16:10:38 -05:00
bpf_sys.h
bpf_util.h bpf: fix multiple issues in selftest suite and samples 2016-11-27 20:38:47 -05:00
config
Makefile bpf: Add tests for the lpm trie map 2017-01-23 16:10:38 -05:00
test_kmod.sh selftests: do not require bash to run bpf tests 2017-01-05 13:19:47 -07:00
test_lpm_map.c bpf: Add tests for the lpm trie map 2017-01-23 16:10:38 -05:00
test_lru_map.c bpf: fix multiple issues in selftest suite and samples 2016-11-27 20:38:47 -05:00
test_maps.c bpf: fix multiple issues in selftest suite and samples 2016-11-27 20:38:47 -05:00
test_verifier.c bpf: allow b/h/w/dw access for bpf's cb in ctx 2017-01-12 10:00:31 -05:00