selftests: bpf: add check for ip XDP redirect
Subsystems (6)
PATCH v2 1/1 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 <[email protected]>
Acked-by Daniel Borkmann <[email protected]>
Cc John Fastabend <[email protected]>
--- tools/testing/selftests/bpf/test_xdp_redirect.sh | 5 +++++ 1 file changed, 5 insertions(+)
tools/testing/selftests/bpf/test_xdp_redirect.sh +5 -0
@@ -23,6 +23,11 @@ cleanup() ip netns del ns2 2> /dev/null } +ip link set dev lo xdpgeneric off 2>/dev/null > /dev/null +if [ $? -ne 0 ];then + echo "selftests: [SKIP] Could not run test without the ip xdpgeneric support" + exit 0 +fi set -e ip netns add ns1
Signature · 1 line
2.7.4
From: William Tu <[email protected]>
Date: Fri, 11 Aug 2017 06:46:39 -0700
Quoted 5 lines
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 <[email protected]>Acked-by Daniel Borkmann <[email protected]>
Applied, thank you.