]> git.baikalelectronics.ru Git - kernel.git/commit
selftests: bpf: add a test for XDP redirect
authorWilliam Tu <u9012063@gmail.com>
Mon, 7 Aug 2017 20:14:42 +0000 (13:14 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 9 Aug 2017 01:12:50 +0000 (18:12 -0700)
commit996139e801fd145bc44b70b4f4bfa621d626f948
treee1ff71d5bae264c2b80ea196accb8e54e23827e1
parentea6404c841011a1ed7b6eac64621d5f96e8b7183
selftests: bpf: add a test for XDP redirect

Add test for xdp_redirect by creating two namespaces with two
veth peers, then forward packets in-between.

Signed-off-by: William Tu <u9012063@gmail.com>
Cc: Daniel Borkmann <daniel@iogearbox.net>
Cc: John Fastabend <john.fastabend@gmail.com>
Acked-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: John Fastabend <john.fastabend@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
tools/include/uapi/linux/bpf.h
tools/testing/selftests/bpf/Makefile
tools/testing/selftests/bpf/test_xdp_redirect.c [new file with mode: 0644]
tools/testing/selftests/bpf/test_xdp_redirect.sh [new file with mode: 0755]