selftests: bpf: add check for ip XDP redirect
authorWilliam Tu <u9012063@gmail.com>
Fri, 11 Aug 2017 13:46:39 +0000 (06:46 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 11 Aug 2017 21:57:31 +0000 (14:57 -0700)
commit047dbb27ff470782c4bd3d574942e571e747463f
tree14da113cfb29e3f4befc877333ea5625afdfc8d6
parent159fe88efda2f5b84681727a4291511338132c1f
selftests: bpf: add check for ip XDP redirect

Kernel test robot reports error when running test_xdp_redirect.sh.
Check if ip tool supports xdpgeneric, if not, skip the test.

Signed-off-by: William Tu <u9012063@gmail.com>
Acked-by: Daniel Borkmann <daniel@iogearbox.net>
Cc: John Fastabend <john.fastabend@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
tools/testing/selftests/bpf/test_xdp_redirect.sh