[prev in list] [next in list] [prev in thread] [next in thread] 

List:       git-commits-head
Subject:    selftests: net: using ping6 for IPv6 in udpgro_fwd.sh
From:       Linux Kernel Mailing List <linux-kernel () vger ! kernel ! org>
Date:       2021-12-30 19:29:49
Message-ID: git-mailbomb-linux-master-8b3170e07539855ee91bc5e2fa7780a4c9b5c7aa () kernel ! org
[Download RAW message or body]

Commit:     8b3170e07539855ee91bc5e2fa7780a4c9b5c7aa
Parent:     be1c5b53227ba8280f1ebb01c6f5da3c9eebdaad
Refname:    refs/heads/master
Web:        https://git.kernel.org/torvalds/c/8b3170e07539855ee91bc5e2fa7780a4c9b5c7aa
Author:     Jianguo Wu <wujianguo@chinatelecom.cn>
AuthorDate: Thu Dec 30 18:40:29 2021 +0800
Committer:  David S. Miller <davem@davemloft.net>
CommitDate: Thu Dec 30 13:31:48 2021 +0000

    selftests: net: using ping6 for IPv6 in udpgro_fwd.sh
    
    udpgro_fwd.sh output following message:
      ping: 2001:db8:1::100: Address family for hostname not supported
    
    Using ping6 when pinging IPv6 addresses.
    
    Fixes: a062260a9d5f ("selftests: net: add UDP GRO forwarding self-tests")
    Signed-off-by: Jianguo Wu <wujianguo@chinatelecom.cn>
    Signed-off-by: David S. Miller <davem@davemloft.net>
---
 tools/testing/selftests/net/udpgro_fwd.sh | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/tools/testing/selftests/net/udpgro_fwd.sh b/tools/testing/selftests/net/udpgro_fwd.sh
index 6a3985b8cd7f6..3ea73013d9568 100755
--- a/tools/testing/selftests/net/udpgro_fwd.sh
+++ b/tools/testing/selftests/net/udpgro_fwd.sh
@@ -185,6 +185,7 @@ for family in 4 6; do
 	IPT=iptables
 	SUFFIX=24
 	VXDEV=vxlan
+	PING=ping
 
 	if [ $family = 6 ]; then
 		BM_NET=$BM_NET_V6
@@ -192,6 +193,7 @@ for family in 4 6; do
 		SUFFIX="64 nodad"
 		VXDEV=vxlan6
 		IPT=ip6tables
+		PING="ping6"
 	fi
 
 	echo "IPv$family"
@@ -237,7 +239,7 @@ for family in 4 6; do
 
 	# load arp cache before running the test to reduce the amount of
 	# stray traffic on top of the UDP tunnel
-	ip netns exec $NS_SRC ping -q -c 1 $OL_NET$DST_NAT >/dev/null
+	ip netns exec $NS_SRC $PING -q -c 1 $OL_NET$DST_NAT >/dev/null
 	run_test "GRO fwd over UDP tunnel" $OL_NET$DST_NAT 1 1 $OL_NET$DST
 	cleanup
 
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic