mirror of
https://github.com/torvalds/linux.git
synced 2026-10-07 05:31:08 -04:00
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]> Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
1 parent
159fe88efd
commit
047dbb27ff
1 file changed
+5
@@ -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
|
||||
|
||||
Reference in new issue
Block a user