Skip to content

Commit

Permalink
selftests/bpf: add l4 load balancer test based on sched_cls
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Alexei Starovoitov authored and David S. Miller committed Apr 1, 2017
1 parent 8d48f5e commit 3782161
Show file tree
Hide file tree
Showing 3 changed files with 563 additions and 1 deletion.
2 changes: 1 addition & 1 deletion tools/testing/selftests/bpf/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ LDLIBS += -lcap -lelf

TEST_GEN_PROGS = test_verifier test_tag test_maps test_lru_map test_lpm_map test_progs

TEST_GEN_FILES = test_pkt_access.o test_xdp.o
TEST_GEN_FILES = test_pkt_access.o test_xdp.o test_l4lb.o

TEST_PROGS := test_kmod.sh

Expand Down
Loading

0 comments on commit 3782161

Please sign in to comment.