selftests/bpf: Use ping6 only if available in tc_redirect
authorJussi Maki <joamaki@gmail.com>
Thu, 8 Jul 2021 02:17:27 +0000 (02:17 +0000)
committerAndrii Nakryiko <andrii@kernel.org>
Mon, 26 Jul 2021 23:04:38 +0000 (16:04 -0700)
commit4cda0c82a34bce96a4e7f229e48a0a57f39acd1b
treeb9c8af626b7d128f104ec2fc68b067f44c433bf8
parent793eccae89bb495cfb44dceeaa13044160c49611
selftests/bpf: Use ping6 only if available in tc_redirect

In the tc_redirect test only use ping6 if it's available and
otherwise fall back to using "ping -6".

Signed-off-by: Jussi Maki <joamaki@gmail.com>
tools/testing/selftests/bpf/prog_tests/tc_redirect.c