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)
commit8d48f5e427923fa6f6482c716082d310b7f3bcd5
tree99977dea886502e8240b4030b5b29512d9827458
parent6882804c916beaa945bae90dfd3295e635f6b78f
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]