Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

bpf, selftest: check tunnel type more accurately

Grep tunnel type directly to make sure 'ip' command supports it.

Signed-off-by: Jian Wang <jianjian.wang1@gmail.com>
Acked-by: Yonghong Song <yhs@fb.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>

authored by

Jian Wang and committed by
Daniel Borkmann
36ffdbc0 902196a5

+1 -1
+1 -1
tools/testing/selftests/bpf/test_tunnel.sh
··· 668 668 669 669 check() 670 670 { 671 - ip link help $1 2>&1 | grep -q "^Usage:" 671 + ip link help 2>&1 | grep -q "\s$1\s" 672 672 if [ $? -ne 0 ];then 673 673 echo "SKIP $1: iproute2 not support" 674 674 cleanup