]> git.baikalelectronics.ru Git - kernel.git/commit
selftests/bpf: add a test for basic XDP functionality
authorAlexei Starovoitov <ast@fb.com>
Fri, 31 Mar 2017 04:45:42 +0000 (21:45 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sat, 1 Apr 2017 19:45:57 +0000 (12:45 -0700)
commit50cab20cd397b79f894659c681bb59de5eba2799
tree99977dea886502e8240b4030b5b29512d9827458
parent4b97617c425bb36fd629425940c7aa08454fd941
selftests/bpf: add a test for basic XDP functionality

add C test for xdp_adjust_head(), packet rewrite and map lookups

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_iptunnel_common.h [new file with mode: 0644]
tools/testing/selftests/bpf/test_progs.c
tools/testing/selftests/bpf/test_xdp.c [new file with mode: 0644]