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)
commit37821613626e99828491302c3a59a094ec427395
tree14e5245d35138409317ebff6a0b1ca11efead714
parent8d48f5e427923fa6f6482c716082d310b7f3bcd5
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