]> 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)
commit7a1975e2390c11a9216fda02d145d79a5092e378
tree14e5245d35138409317ebff6a0b1ca11efead714
parent2daf36c833f3439dbceaf272052352b1e42ffcc3
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