test suite reviews and discussions
 help / color / mirror / Atom feed
* Re: [dts] [PATCH V1] add cvl support for VECTOR configuration
  2019-10-24 16:02 [dts] [PATCH V1] add cvl support for VECTOR configuration Peng Zhihong
@ 2019-10-24  8:16 ` He, Zhiwei
  2019-11-04  2:58 ` Tu, Lijuan
  1 sibling, 0 replies; 3+ messages in thread
From: He, Zhiwei @ 2019-10-24  8:16 UTC (permalink / raw)
  To: Peng, ZhihongX, dts; +Cc: Peng, ZhihongX, He, Zhiwei

Acked-by zhiwei  <zhiwei.he@intel.com>
Thanks!
zhiwei

-----Original Message-----
From: dts [mailto:dts-bounces@dpdk.org] On Behalf Of Peng Zhihong
Sent: Friday, October 25, 2019 12:02 AM
To: dts@dpdk.org
Cc: Peng, ZhihongX <zhihongx.peng@intel.com>
Subject: [dts] [PATCH V1] add cvl support for VECTOR configuration

add cvl support for VECTOR configuration

Signed-off-by: Peng Zhihong <zhihongx.peng@intel.com>
---
 tests/TestSuite_vxlan.py | 76 +++++++++++++++++++++++++---------------
 1 file changed, 47 insertions(+), 29 deletions(-)

diff --git a/tests/TestSuite_vxlan.py b/tests/TestSuite_vxlan.py index 3651bac..6570364 100644
--- a/tests/TestSuite_vxlan.py
+++ b/tests/TestSuite_vxlan.py
@@ -261,6 +261,8 @@ class TestVxlan(TestCase, IxiaPacketGenerator):
             self.compile_switch = 'CONFIG_RTE_LIBRTE_I40E_INC_VECTOR'
         elif self.nic in ["sageville", "sagepond"]:
             self.compile_switch = 'CONFIG_RTE_IXGBE_INC_VECTOR'
+        elif self.nic in ["columbiaville_25g","columbiaville_100g"]:
+            print "CVL support default none VECTOR"
         else:
             self.verify(False, "%s not support this vxlan" % self.nic)
         # Based on h/w type, choose how many ports to use @@ -521,13 +523,17 @@ class TestVxlan(TestCase, IxiaPacketGenerator):
         """
         verify vxlan packet detection
         """
-        out = self.dut.send_expect("cat config/common_base", "]# ", 10)
-        src_vec_model = re.search("%s=." % self.compile_switch, out).group()[-1]
-        if src_vec_model == 'y':
-            self.dut.send_expect("sed -i -e 's/%s=.*$/" % self.compile_switch
-                                + "%s=n/' config/common_base" % self.compile_switch, "# ", 30)
-            self.dut.skip_setup = False
-            self.dut.build_install_dpdk(self.target)
+        if self.nic in ["columbiaville_25g","columbiaville_100g"]:
+            print "CVL support default none VECTOR"
+            src_vec_model = 'n'
+        else:
+            out = self.dut.send_expect("cat config/common_base", "]# ", 10)
+            src_vec_model = re.search("%s=." % self.compile_switch, out).group()[-1]
+            if src_vec_model == 'y':
+                self.dut.send_expect("sed -i -e 's/%s=.*$/" % self.compile_switch
+                                    + "%s=n/' config/common_base" % self.compile_switch, "# ", 30)
+                self.dut.skip_setup = False
+                self.dut.build_install_dpdk(self.target)
 
         pmd_temp = "./%(TARGET)s/app/testpmd -c %(COREMASK)s -n " + \
             "%(CHANNEL)d -- -i --disable-rss --rxq=4 --txq=4" + \ @@ -558,26 +564,34 @@ class TestVxlan(TestCase, IxiaPacketGenerator):
 
         out = self.dut.send_expect("stop", "testpmd>", 10)
         self.dut.send_expect("quit", "#", 10)
-
-        out = self.dut.send_expect("cat config/common_base", "]# ", 10)
-        dst_vec_model = re.findall("%s=." % self.compile_switch, out)[0][-1]
-        if src_vec_model != dst_vec_model:
-            self.dut.send_expect("sed -i -e 's/%s=.*$/" % self.compile_switch
-                                + "%s=%s/' config/common_base" % (self.compile_switch, src_vec_model), "# ", 30)
-            self.dut.skip_setup = False
-            self.dut.build_install_dpdk(self.target)
+        
+        if self.nic in ["columbiaville_25g","columbiaville_100g"]:
+            print "CVL support default none VECTOR"
+            src_vec_model = 'n'
+        else:
+            out = self.dut.send_expect("cat config/common_base", "]# ", 10)
+            dst_vec_model = re.findall("%s=." % self.compile_switch, out)[0][-1]
+            if src_vec_model != dst_vec_model:
+                self.dut.send_expect("sed -i -e 's/%s=.*$/" % self.compile_switch
+                                    + "%s=%s/' config/common_base" % (self.compile_switch, src_vec_model), "# ", 30)
+                self.dut.skip_setup = False
+                self.dut.build_install_dpdk(self.target)
 
     def test_vxlan_ipv6_detect(self):
         """
         verify vxlan packet detection with ipv6 header
         """
-        out = self.dut.send_expect("cat config/common_base", "]# ", 10)
-        src_vec_model = re.search("%s=." % self.compile_switch, out).group()[-1]
-        if src_vec_model == 'y':
-            self.dut.send_expect("sed -i -e 's/%s=.*$/" % self.compile_switch
-                                + "%s=n/' config/common_base" % self.compile_switch, "# ", 30)
-            self.dut.skip_setup = False
-            self.dut.build_install_dpdk(self.target)
+        if self.nic in ["columbiaville_25g","columbiaville_100g"]:
+            print "CVL support default none VECTOR"
+            src_vec_model = 'n'
+        else:
+            out = self.dut.send_expect("cat config/common_base", "]# ", 10)
+            src_vec_model = re.search("%s=." % self.compile_switch, out).group()[-1]
+            if src_vec_model == 'y':
+                self.dut.send_expect("sed -i -e 's/%s=.*$/" % self.compile_switch
+                                    + "%s=n/' config/common_base" % self.compile_switch, "# ", 30)
+                self.dut.skip_setup = False
+                self.dut.build_install_dpdk(self.target)
 
         pmd_temp = "./%(TARGET)s/app/testpmd -c %(COREMASK)s -n " + \
             "%(CHANNEL)d -- -i --disable-rss --rxq=4 --txq=4" + \ @@ -613,13 +627,17 @@ class TestVxlan(TestCase, IxiaPacketGenerator):
         out = self.dut.send_expect("stop", "testpmd>", 10)
         self.dut.send_expect("quit", "#", 10)
 
-        out = self.dut.send_expect("cat config/common_base", "]# ", 10)
-        dst_vec_model = re.findall("%s=." % self.compile_switch, out)[0][-1]
-        if src_vec_model != dst_vec_model:
-            self.dut.send_expect("sed -i -e 's/%s=.*$/" % self.compile_switch
-                                + "%s=%s/' config/common_base" % (self.compile_switch, src_vec_model), "# ", 30)
-            self.dut.skip_setup = False
-            self.dut.build_install_dpdk(self.target)
+        if self.nic in ["columbiaville_25g","columbiaville_100g"]:
+            print "CVL support default none VECTOR"
+            src_vec_model = 'n'
+        else:
+            out = self.dut.send_expect("cat config/common_base", "]# ", 10)
+            dst_vec_model = re.findall("%s=." % self.compile_switch, out)[0][-1]
+            if src_vec_model != dst_vec_model:
+                self.dut.send_expect("sed -i -e 's/%s=.*$/" % self.compile_switch
+                                    + "%s=%s/' config/common_base" % (self.compile_switch, src_vec_model), "# ", 30)
+                self.dut.skip_setup = False
+                self.dut.build_install_dpdk(self.target)
 
     def test_vxlan_ipv4_checksum_offload(self):
         """
--
2.17.1


^ permalink raw reply	[flat|nested] 3+ messages in thread

* [dts] [PATCH V1] add cvl support for VECTOR configuration
@ 2019-10-24 16:02 Peng Zhihong
  2019-10-24  8:16 ` He, Zhiwei
  2019-11-04  2:58 ` Tu, Lijuan
  0 siblings, 2 replies; 3+ messages in thread
From: Peng Zhihong @ 2019-10-24 16:02 UTC (permalink / raw)
  To: dts; +Cc: Peng Zhihong

add cvl support for VECTOR configuration

Signed-off-by: Peng Zhihong <zhihongx.peng@intel.com>
---
 tests/TestSuite_vxlan.py | 76 +++++++++++++++++++++++++---------------
 1 file changed, 47 insertions(+), 29 deletions(-)

diff --git a/tests/TestSuite_vxlan.py b/tests/TestSuite_vxlan.py
index 3651bac..6570364 100644
--- a/tests/TestSuite_vxlan.py
+++ b/tests/TestSuite_vxlan.py
@@ -261,6 +261,8 @@ class TestVxlan(TestCase, IxiaPacketGenerator):
             self.compile_switch = 'CONFIG_RTE_LIBRTE_I40E_INC_VECTOR'
         elif self.nic in ["sageville", "sagepond"]:
             self.compile_switch = 'CONFIG_RTE_IXGBE_INC_VECTOR'
+        elif self.nic in ["columbiaville_25g","columbiaville_100g"]:
+            print "CVL support default none VECTOR"
         else:
             self.verify(False, "%s not support this vxlan" % self.nic)
         # Based on h/w type, choose how many ports to use
@@ -521,13 +523,17 @@ class TestVxlan(TestCase, IxiaPacketGenerator):
         """
         verify vxlan packet detection
         """
-        out = self.dut.send_expect("cat config/common_base", "]# ", 10)
-        src_vec_model = re.search("%s=." % self.compile_switch, out).group()[-1]
-        if src_vec_model == 'y':
-            self.dut.send_expect("sed -i -e 's/%s=.*$/" % self.compile_switch
-                                + "%s=n/' config/common_base" % self.compile_switch, "# ", 30)
-            self.dut.skip_setup = False
-            self.dut.build_install_dpdk(self.target)
+        if self.nic in ["columbiaville_25g","columbiaville_100g"]:
+            print "CVL support default none VECTOR"
+            src_vec_model = 'n'
+        else:
+            out = self.dut.send_expect("cat config/common_base", "]# ", 10)
+            src_vec_model = re.search("%s=." % self.compile_switch, out).group()[-1]
+            if src_vec_model == 'y':
+                self.dut.send_expect("sed -i -e 's/%s=.*$/" % self.compile_switch
+                                    + "%s=n/' config/common_base" % self.compile_switch, "# ", 30)
+                self.dut.skip_setup = False
+                self.dut.build_install_dpdk(self.target)
 
         pmd_temp = "./%(TARGET)s/app/testpmd -c %(COREMASK)s -n " + \
             "%(CHANNEL)d -- -i --disable-rss --rxq=4 --txq=4" + \
@@ -558,26 +564,34 @@ class TestVxlan(TestCase, IxiaPacketGenerator):
 
         out = self.dut.send_expect("stop", "testpmd>", 10)
         self.dut.send_expect("quit", "#", 10)
-
-        out = self.dut.send_expect("cat config/common_base", "]# ", 10)
-        dst_vec_model = re.findall("%s=." % self.compile_switch, out)[0][-1]
-        if src_vec_model != dst_vec_model:
-            self.dut.send_expect("sed -i -e 's/%s=.*$/" % self.compile_switch
-                                + "%s=%s/' config/common_base" % (self.compile_switch, src_vec_model), "# ", 30)
-            self.dut.skip_setup = False
-            self.dut.build_install_dpdk(self.target)
+        
+        if self.nic in ["columbiaville_25g","columbiaville_100g"]:
+            print "CVL support default none VECTOR"
+            src_vec_model = 'n'
+        else:
+            out = self.dut.send_expect("cat config/common_base", "]# ", 10)
+            dst_vec_model = re.findall("%s=." % self.compile_switch, out)[0][-1]
+            if src_vec_model != dst_vec_model:
+                self.dut.send_expect("sed -i -e 's/%s=.*$/" % self.compile_switch
+                                    + "%s=%s/' config/common_base" % (self.compile_switch, src_vec_model), "# ", 30)
+                self.dut.skip_setup = False
+                self.dut.build_install_dpdk(self.target)
 
     def test_vxlan_ipv6_detect(self):
         """
         verify vxlan packet detection with ipv6 header
         """
-        out = self.dut.send_expect("cat config/common_base", "]# ", 10)
-        src_vec_model = re.search("%s=." % self.compile_switch, out).group()[-1]
-        if src_vec_model == 'y':
-            self.dut.send_expect("sed -i -e 's/%s=.*$/" % self.compile_switch
-                                + "%s=n/' config/common_base" % self.compile_switch, "# ", 30)
-            self.dut.skip_setup = False
-            self.dut.build_install_dpdk(self.target)
+        if self.nic in ["columbiaville_25g","columbiaville_100g"]:
+            print "CVL support default none VECTOR"
+            src_vec_model = 'n'
+        else:
+            out = self.dut.send_expect("cat config/common_base", "]# ", 10)
+            src_vec_model = re.search("%s=." % self.compile_switch, out).group()[-1]
+            if src_vec_model == 'y':
+                self.dut.send_expect("sed -i -e 's/%s=.*$/" % self.compile_switch
+                                    + "%s=n/' config/common_base" % self.compile_switch, "# ", 30)
+                self.dut.skip_setup = False
+                self.dut.build_install_dpdk(self.target)
 
         pmd_temp = "./%(TARGET)s/app/testpmd -c %(COREMASK)s -n " + \
             "%(CHANNEL)d -- -i --disable-rss --rxq=4 --txq=4" + \
@@ -613,13 +627,17 @@ class TestVxlan(TestCase, IxiaPacketGenerator):
         out = self.dut.send_expect("stop", "testpmd>", 10)
         self.dut.send_expect("quit", "#", 10)
 
-        out = self.dut.send_expect("cat config/common_base", "]# ", 10)
-        dst_vec_model = re.findall("%s=." % self.compile_switch, out)[0][-1]
-        if src_vec_model != dst_vec_model:
-            self.dut.send_expect("sed -i -e 's/%s=.*$/" % self.compile_switch
-                                + "%s=%s/' config/common_base" % (self.compile_switch, src_vec_model), "# ", 30)
-            self.dut.skip_setup = False
-            self.dut.build_install_dpdk(self.target)
+        if self.nic in ["columbiaville_25g","columbiaville_100g"]:
+            print "CVL support default none VECTOR"
+            src_vec_model = 'n'
+        else:
+            out = self.dut.send_expect("cat config/common_base", "]# ", 10)
+            dst_vec_model = re.findall("%s=." % self.compile_switch, out)[0][-1]
+            if src_vec_model != dst_vec_model:
+                self.dut.send_expect("sed -i -e 's/%s=.*$/" % self.compile_switch
+                                    + "%s=%s/' config/common_base" % (self.compile_switch, src_vec_model), "# ", 30)
+                self.dut.skip_setup = False
+                self.dut.build_install_dpdk(self.target)
 
     def test_vxlan_ipv4_checksum_offload(self):
         """
-- 
2.17.1


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [dts] [PATCH V1] add cvl support for VECTOR configuration
  2019-10-24 16:02 [dts] [PATCH V1] add cvl support for VECTOR configuration Peng Zhihong
  2019-10-24  8:16 ` He, Zhiwei
@ 2019-11-04  2:58 ` Tu, Lijuan
  1 sibling, 0 replies; 3+ messages in thread
From: Tu, Lijuan @ 2019-11-04  2:58 UTC (permalink / raw)
  To: Peng, ZhihongX, dts; +Cc: Peng, ZhihongX

Applied, thanks

> -----Original Message-----
> From: dts [mailto:dts-bounces@dpdk.org] On Behalf Of Peng Zhihong
> Sent: Friday, October 25, 2019 12:02 AM
> To: dts@dpdk.org
> Cc: Peng, ZhihongX <zhihongx.peng@intel.com>
> Subject: [dts] [PATCH V1] add cvl support for VECTOR configuration
> 
> add cvl support for VECTOR configuration
> 
> Signed-off-by: Peng Zhihong <zhihongx.peng@intel.com>
> ---
>  tests/TestSuite_vxlan.py | 76 +++++++++++++++++++++++++---------------
>  1 file changed, 47 insertions(+), 29 deletions(-)
> 
> diff --git a/tests/TestSuite_vxlan.py b/tests/TestSuite_vxlan.py index
> 3651bac..6570364 100644
> --- a/tests/TestSuite_vxlan.py
> +++ b/tests/TestSuite_vxlan.py
> @@ -261,6 +261,8 @@ class TestVxlan(TestCase, IxiaPacketGenerator):
>              self.compile_switch = 'CONFIG_RTE_LIBRTE_I40E_INC_VECTOR'
>          elif self.nic in ["sageville", "sagepond"]:
>              self.compile_switch = 'CONFIG_RTE_IXGBE_INC_VECTOR'
> +        elif self.nic in ["columbiaville_25g","columbiaville_100g"]:
> +            print "CVL support default none VECTOR"
>          else:
>              self.verify(False, "%s not support this vxlan" % self.nic)
>          # Based on h/w type, choose how many ports to use @@ -521,13
> +523,17 @@ class TestVxlan(TestCase, IxiaPacketGenerator):
>          """
>          verify vxlan packet detection
>          """
> -        out = self.dut.send_expect("cat config/common_base", "]# ", 10)
> -        src_vec_model = re.search("%s=." % self.compile_switch, out).group()[-
> 1]
> -        if src_vec_model == 'y':
> -            self.dut.send_expect("sed -i -e 's/%s=.*$/" % self.compile_switch
> -                                + "%s=n/' config/common_base" % self.compile_switch, "#
> ", 30)
> -            self.dut.skip_setup = False
> -            self.dut.build_install_dpdk(self.target)
> +        if self.nic in ["columbiaville_25g","columbiaville_100g"]:
> +            print "CVL support default none VECTOR"
> +            src_vec_model = 'n'
> +        else:
> +            out = self.dut.send_expect("cat config/common_base", "]# ", 10)
> +            src_vec_model = re.search("%s=." % self.compile_switch,
> out).group()[-1]
> +            if src_vec_model == 'y':
> +                self.dut.send_expect("sed -i -e 's/%s=.*$/" % self.compile_switch
> +                                    + "%s=n/' config/common_base" % self.compile_switch,
> "# ", 30)
> +                self.dut.skip_setup = False
> +                self.dut.build_install_dpdk(self.target)
> 
>          pmd_temp = "./%(TARGET)s/app/testpmd -c %(COREMASK)s -n " + \
>              "%(CHANNEL)d -- -i --disable-rss --rxq=4 --txq=4" + \ @@ -558,26
> +564,34 @@ class TestVxlan(TestCase, IxiaPacketGenerator):
> 
>          out = self.dut.send_expect("stop", "testpmd>", 10)
>          self.dut.send_expect("quit", "#", 10)
> -
> -        out = self.dut.send_expect("cat config/common_base", "]# ", 10)
> -        dst_vec_model = re.findall("%s=." % self.compile_switch, out)[0][-1]
> -        if src_vec_model != dst_vec_model:
> -            self.dut.send_expect("sed -i -e 's/%s=.*$/" % self.compile_switch
> -                                + "%s=%s/' config/common_base" % (self.compile_switch,
> src_vec_model), "# ", 30)
> -            self.dut.skip_setup = False
> -            self.dut.build_install_dpdk(self.target)
> +
> +        if self.nic in ["columbiaville_25g","columbiaville_100g"]:
> +            print "CVL support default none VECTOR"
> +            src_vec_model = 'n'
> +        else:
> +            out = self.dut.send_expect("cat config/common_base", "]# ", 10)
> +            dst_vec_model = re.findall("%s=." % self.compile_switch, out)[0][-1]
> +            if src_vec_model != dst_vec_model:
> +                self.dut.send_expect("sed -i -e 's/%s=.*$/" % self.compile_switch
> +                                    + "%s=%s/' config/common_base" %
> (self.compile_switch, src_vec_model), "# ", 30)
> +                self.dut.skip_setup = False
> +                self.dut.build_install_dpdk(self.target)
> 
>      def test_vxlan_ipv6_detect(self):
>          """
>          verify vxlan packet detection with ipv6 header
>          """
> -        out = self.dut.send_expect("cat config/common_base", "]# ", 10)
> -        src_vec_model = re.search("%s=." % self.compile_switch, out).group()[-
> 1]
> -        if src_vec_model == 'y':
> -            self.dut.send_expect("sed -i -e 's/%s=.*$/" % self.compile_switch
> -                                + "%s=n/' config/common_base" % self.compile_switch, "#
> ", 30)
> -            self.dut.skip_setup = False
> -            self.dut.build_install_dpdk(self.target)
> +        if self.nic in ["columbiaville_25g","columbiaville_100g"]:
> +            print "CVL support default none VECTOR"
> +            src_vec_model = 'n'
> +        else:
> +            out = self.dut.send_expect("cat config/common_base", "]# ", 10)
> +            src_vec_model = re.search("%s=." % self.compile_switch,
> out).group()[-1]
> +            if src_vec_model == 'y':
> +                self.dut.send_expect("sed -i -e 's/%s=.*$/" % self.compile_switch
> +                                    + "%s=n/' config/common_base" % self.compile_switch,
> "# ", 30)
> +                self.dut.skip_setup = False
> +                self.dut.build_install_dpdk(self.target)
> 
>          pmd_temp = "./%(TARGET)s/app/testpmd -c %(COREMASK)s -n " + \
>              "%(CHANNEL)d -- -i --disable-rss --rxq=4 --txq=4" + \ @@ -613,13
> +627,17 @@ class TestVxlan(TestCase, IxiaPacketGenerator):
>          out = self.dut.send_expect("stop", "testpmd>", 10)
>          self.dut.send_expect("quit", "#", 10)
> 
> -        out = self.dut.send_expect("cat config/common_base", "]# ", 10)
> -        dst_vec_model = re.findall("%s=." % self.compile_switch, out)[0][-1]
> -        if src_vec_model != dst_vec_model:
> -            self.dut.send_expect("sed -i -e 's/%s=.*$/" % self.compile_switch
> -                                + "%s=%s/' config/common_base" % (self.compile_switch,
> src_vec_model), "# ", 30)
> -            self.dut.skip_setup = False
> -            self.dut.build_install_dpdk(self.target)
> +        if self.nic in ["columbiaville_25g","columbiaville_100g"]:
> +            print "CVL support default none VECTOR"
> +            src_vec_model = 'n'
> +        else:
> +            out = self.dut.send_expect("cat config/common_base", "]# ", 10)
> +            dst_vec_model = re.findall("%s=." % self.compile_switch, out)[0][-1]
> +            if src_vec_model != dst_vec_model:
> +                self.dut.send_expect("sed -i -e 's/%s=.*$/" % self.compile_switch
> +                                    + "%s=%s/' config/common_base" %
> (self.compile_switch, src_vec_model), "# ", 30)
> +                self.dut.skip_setup = False
> +                self.dut.build_install_dpdk(self.target)
> 
>      def test_vxlan_ipv4_checksum_offload(self):
>          """
> --
> 2.17.1


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2019-11-04  2:58 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-10-24 16:02 [dts] [PATCH V1] add cvl support for VECTOR configuration Peng Zhihong
2019-10-24  8:16 ` He, Zhiwei
2019-11-04  2:58 ` Tu, Lijuan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).