Skip to contentSkip to conversation

network/geneve: add performance test for geneve tunnel

PATCH New Alexey Kodanev 1 participant 2 messages Oct 7, 2016 – Nov 24, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 network/geneve: add performance test for geneve tunnel

Test is based on vxlan03 test and repeats the same steps, but without additional options.

---
 runtest/net.features               |    3 ++
 testcases/network/virt/Makefile    |    1 +
 testcases/network/virt/geneve01.sh |   59 ++++++++++++++++++++++++++++++++++++
 testcases/network/virt/virt_lib.sh |   21 +++++++-----
 4 files changed, 75 insertions(+), 9 deletions(-)
 create mode 100755 testcases/network/virt/geneve01.sh
runtest/net.features +3 -0
index a64028b..963d8c5 100644
@@ -37,3 +37,6 @@ gre_ipv6_01 gre01.sh -6
 
 dctcp_ipv4_01 dctcp01.sh
 dctcp_ipv6_01 dctcp01.sh -6
+
+geneve01 geneve01.sh
+geneve01_ipv6 geneve01.sh -6
testcases/network/virt/Makefile +1 -0
index 54e374f..9a97a82 100644
@@ -19,6 +19,7 @@ top_srcdir		?= ../../..
 include $(top_srcdir)/include/mk/env_pre.mk
 
 INSTALL_TARGETS		:= ipvlan01.sh \
+			   geneve01.sh \
 			   gre01.sh \
 			   macvlan01.sh \
 			   macvtap01.sh \
testcases/network/virt/geneve01.sh new file +59 -0

59 lines not on this page · raw message

testcases/network/virt/virt_lib.sh +12 -9
index 2a46076..1757698 100644
@@ -110,6 +110,9 @@ virt_add()
 		[ -z "$opt" ] && opt="id 4094"
 		[ "$vxlan_dstport" -eq 1 ] && opt="dstport 0 $opt"
 	;;
+	geneve)
+		[ -z "$opt" ] && opt="id 4094 remote $(tst_ipaddr rhost)"
+	;;
 	gre|ip6gre)
 		[ -z "$opt" ] && \
 			opt="remote $(tst_ipaddr rhost) dev $(tst_iface)"
@@ -117,7 +120,7 @@ virt_add()
 	esac
 
 	case $virt_type in
-	vxlan)
+	vxlan|geneve)
 		ip li add $vname type $virt_type $opt
 	;;
 	gre|ip6gre)
@@ -133,7 +136,7 @@ virt_add_rhost()
 {
 	local opt=""
 	case $virt_type in
-	vxlan)
+	vxlan|geneve)
 		[ "$vxlan_dstport" -eq 1 ] && opt="dstport 0"
 		tst_rhost_run -s -c "ip li add ltp_v0 type $virt_type $@ $opt"
 	;;
@@ -237,7 +240,7 @@ vxlan_setup_subnet_uni()
 	tst_kvercmp 3 10 0 && \
 		tst_brkm TCONF "test must be run with kernel 3.10 or newer"
 
-	[ "$(ip li add type vxlan help 2>&1 | grep remote)" ] || \
+	[ "$(ip li add type $virt_type help 2>&1 | grep remote)" ] || \
 		tst_brkm TCONF "iproute doesn't support remote unicast address"
 
 	local opt="$1 remote $(tst_ipaddr rhost)"
@@ -301,13 +304,13 @@ virt_compare_netperf()
 	per6=$(( $vt6 * 100 / $lt - 100 ))
 
 	case "$virt_type" in
-	vxlan)
-		tst_resm TINFO "IPv4 VxLAN over IPv$ipver slower by $per %"
-		tst_resm TINFO "IPv6 VxLAN over IPv$ipver slower by $per6 %"
+	vxlan|geneve)
+		tst_resm TINFO "IP4 $virt_type over IP$ipver slower by $per %"
+		tst_resm TINFO "IP6 $virt_type over IP$ipver slower by $per6 %"
 	;;
 	*)
-		tst_resm TINFO "IPv4 $virt_type slower by $per %"
-		tst_resm TINFO "IPv6 $virt_type slower by $per6 %"
+		tst_resm TINFO "IP4 $virt_type slower by $per %"
+		tst_resm TINFO "IP6 $virt_type slower by $per6 %"
 	esac
 
 	if [ "$per" -ge "$VIRT_PERF_THRESHOLD" -o \
@@ -388,7 +391,7 @@ virt_test_02()
 tst_require_root
 
 case "$virt_type" in
-vxlan)
+vxlan|geneve)
 	tst_kvercmp 3 8 0 && \
 		tst_brkm TCONF "test must be run with kernel 3.8 or newer"
 
Signature · 1 line
1.7.1
author Applied
#1 lore raw

PATCH 1/1 network/geneve: add performance test for geneve tunnel

Hi,

Quoted 2 lines · Alexey Kodanev

Test is based on vxlan03 test and repeats the same steps, but without additional options.

Applied.

Best regards,
Alexey