Commit 36ffdbc0 authored by Jian Wang's avatar Jian Wang Committed by Daniel Borkmann

bpf, selftest: check tunnel type more accurately

Grep tunnel type directly to make sure 'ip' command supports it.
Signed-off-by: default avatarJian Wang <jianjian.wang1@gmail.com>
Acked-by: default avatarYonghong Song <yhs@fb.com>
Signed-off-by: default avatarDaniel Borkmann <daniel@iogearbox.net>
parent 902196a5
...@@ -668,7 +668,7 @@ cleanup_exit() ...@@ -668,7 +668,7 @@ cleanup_exit()
check() check()
{ {
ip link help $1 2>&1 | grep -q "^Usage:" ip link help 2>&1 | grep -q "\s$1\s"
if [ $? -ne 0 ];then if [ $? -ne 0 ];then
echo "SKIP $1: iproute2 not support" echo "SKIP $1: iproute2 not support"
cleanup cleanup
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment