]> git.baikalelectronics.ru Git - kernel.git/commit
selftests/bpf: add l4 load balancer test based on sched_cls
authorAlexei Starovoitov <ast@fb.com>
Fri, 31 Mar 2017 04:45:43 +0000 (21:45 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sat, 1 Apr 2017 19:45:57 +0000 (12:45 -0700)
commit3a099c9b8c0daef44ee9f3f2c8ad81b959d7237d
tree14e5245d35138409317ebff6a0b1ca11efead714
parent50cab20cd397b79f894659c681bb59de5eba2799
selftests/bpf: add l4 load balancer test based on sched_cls

this l4lb demo is a comprehensive test case for LLVM codegen and
kernel verifier. It's using fully inlined jhash(), complex packet
parsing and multiple map lookups of different types to stress
llvm and verifier.
The map sizes, map population and test vectors are artificial to
exercise different paths through the bpf program.

Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Acked-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Martin KaFai Lau <kafai@fb.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
tools/testing/selftests/bpf/Makefile
tools/testing/selftests/bpf/test_l4lb.c [new file with mode: 0644]
tools/testing/selftests/bpf/test_progs.c