selftests: net: udpgro_fwd.sh: explicitly checking the available ping feature
authorJianguo Wu <wujianguo@chinatelecom.cn>
Fri, 31 Dec 2021 02:01:08 +0000 (10:01 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 11 Jan 2022 14:35:14 +0000 (15:35 +0100)
commit3c5c81d1e3504e756dc1d8610c3bbdbc947fa5d5
treeb9a248d966e4f70d46bd01645e5ce033f3422600
parent41844e68eb92afb935bd0e3366edc6df83b07f26
selftests: net: udpgro_fwd.sh: explicitly checking the available ping feature

commit 5e75d0b215b868337e7a193f28a543ec00e858b1 upstream.

As Paolo pointed out, the result of ping IPv6 address depends on
the running distro. So explicitly checking the available ping feature,
as e.g. do the bareudp.sh self-tests.

Fixes: 8b3170e07539 ("selftests: net: using ping6 for IPv6 in udpgro_fwd.sh")
Signed-off-by: Jianguo Wu <wujianguo@chinatelecom.cn>
Link: https://lore.kernel.org/r/825ee22b-4245-dbf7-d2f7-a230770d6e21@163.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
tools/testing/selftests/net/udpgro_fwd.sh