test suite reviews and discussions
 help / color / mirror / Atom feed
* [dts] [PATCH V1] tests/dynamic_queue use whitelist for Forville_spirit
@ 2019-01-22  2:02 zhuwenhui
  2019-01-24  7:45 ` Yao, BingX Y
  2019-01-25  4:49 ` Tu, Lijuan
  0 siblings, 2 replies; 3+ messages in thread
From: zhuwenhui @ 2019-01-22  2:02 UTC (permalink / raw)
  To: dts; +Cc: zhuwenhui

Because of forville spirit limitation, can't use 2 ports for testing.
Use whitelist this workaround for Forville_spirit

Signed-off-by: zhuwenhui <wenhuix.zhu@intel.com>
---
 tests/TestSuite_dynamic_queue.py | 13 ++++++++++---
 1 file changed, 10 insertions(+), 3 deletions(-)

diff --git a/tests/TestSuite_dynamic_queue.py b/tests/TestSuite_dynamic_queue.py
index f155686..34a9363 100644
--- a/tests/TestSuite_dynamic_queue.py
+++ b/tests/TestSuite_dynamic_queue.py
@@ -27,9 +27,16 @@ class TestDynamicQueue(TestCase):
         self.dut_testpmd = PmdOutput(self.dut)
 
     def set_up(self):
-        self.dut_testpmd.start_testpmd(
-            "Default", "--port-topology=chained --txq=%s --rxq=%s"
-            % (self.PF_QUEUE, self.PF_QUEUE))
+        # Because of forville spirit limitation,can't use 2 ports for testing
+        if (self.nic in ["fortville_spirit"]):
+            self.dut_testpmd.start_testpmd(
+                "Default", "--port-topology=chained --txq=%s --rxq=%s"
+                % (self.PF_QUEUE, self.PF_QUEUE), eal_param="-w %s"
+                % (self.dut.get_port_pci(self.dut_ports[0])))
+        else:
+            self.dut_testpmd.start_testpmd(
+                "Default", "--port-topology=chained --txq=%s --rxq=%s"
+                % (self.PF_QUEUE, self.PF_QUEUE))
 
     def element_strip(self, out, pattern):
         """
-- 
2.17.2

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

* Re: [dts] [PATCH V1] tests/dynamic_queue use whitelist for Forville_spirit
  2019-01-22  2:02 [dts] [PATCH V1] tests/dynamic_queue use whitelist for Forville_spirit zhuwenhui
@ 2019-01-24  7:45 ` Yao, BingX Y
  2019-01-25  4:49 ` Tu, Lijuan
  1 sibling, 0 replies; 3+ messages in thread
From: Yao, BingX Y @ 2019-01-24  7:45 UTC (permalink / raw)
  To: Zhu, WenhuiX, dts; +Cc: Zhu, WenhuiX

Tested-by: yaobing <bingx.y.yao@intel.com>

-----Original Message-----
From: dts [mailto:dts-bounces@dpdk.org] On Behalf Of zhuwenhui
Sent: Tuesday, January 22, 2019 10:03 AM
To: dts@dpdk.org
Cc: Zhu, WenhuiX <wenhuix.zhu@intel.com>
Subject: [dts] [PATCH V1] tests/dynamic_queue use whitelist for Forville_spirit

Because of forville spirit limitation, can't use 2 ports for testing.
Use whitelist this workaround for Forville_spirit

Signed-off-by: zhuwenhui <wenhuix.zhu@intel.com>
---
 tests/TestSuite_dynamic_queue.py | 13 ++++++++++---
 1 file changed, 10 insertions(+), 3 deletions(-)

diff --git a/tests/TestSuite_dynamic_queue.py b/tests/TestSuite_dynamic_queue.py
index f155686..34a9363 100644
--- a/tests/TestSuite_dynamic_queue.py
+++ b/tests/TestSuite_dynamic_queue.py
@@ -27,9 +27,16 @@ class TestDynamicQueue(TestCase):
         self.dut_testpmd = PmdOutput(self.dut)
 
     def set_up(self):
-        self.dut_testpmd.start_testpmd(
-            "Default", "--port-topology=chained --txq=%s --rxq=%s"
-            % (self.PF_QUEUE, self.PF_QUEUE))
+        # Because of forville spirit limitation,can't use 2 ports for testing
+        if (self.nic in ["fortville_spirit"]):
+            self.dut_testpmd.start_testpmd(
+                "Default", "--port-topology=chained --txq=%s --rxq=%s"
+                % (self.PF_QUEUE, self.PF_QUEUE), eal_param="-w %s"
+                % (self.dut.get_port_pci(self.dut_ports[0])))
+        else:
+            self.dut_testpmd.start_testpmd(
+                "Default", "--port-topology=chained --txq=%s --rxq=%s"
+                % (self.PF_QUEUE, self.PF_QUEUE))
 
     def element_strip(self, out, pattern):
         """
-- 
2.17.2

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

* Re: [dts] [PATCH V1] tests/dynamic_queue use whitelist for Forville_spirit
  2019-01-22  2:02 [dts] [PATCH V1] tests/dynamic_queue use whitelist for Forville_spirit zhuwenhui
  2019-01-24  7:45 ` Yao, BingX Y
@ 2019-01-25  4:49 ` Tu, Lijuan
  1 sibling, 0 replies; 3+ messages in thread
From: Tu, Lijuan @ 2019-01-25  4:49 UTC (permalink / raw)
  To: Zhu, WenhuiX, dts; +Cc: Zhu, WenhuiX

Applied, thanks, please mind your version.

> -----Original Message-----
> From: dts [mailto:dts-bounces@dpdk.org] On Behalf Of zhuwenhui
> Sent: Tuesday, January 22, 2019 10:03 AM
> To: dts@dpdk.org
> Cc: Zhu, WenhuiX <wenhuix.zhu@intel.com>
> Subject: [dts] [PATCH V1] tests/dynamic_queue use whitelist for Forville_spirit
> 
> Because of forville spirit limitation, can't use 2 ports for testing.
> Use whitelist this workaround for Forville_spirit
> 
> Signed-off-by: zhuwenhui <wenhuix.zhu@intel.com>
> ---
>  tests/TestSuite_dynamic_queue.py | 13 ++++++++++---
>  1 file changed, 10 insertions(+), 3 deletions(-)
> 
> diff --git a/tests/TestSuite_dynamic_queue.py
> b/tests/TestSuite_dynamic_queue.py
> index f155686..34a9363 100644
> --- a/tests/TestSuite_dynamic_queue.py
> +++ b/tests/TestSuite_dynamic_queue.py
> @@ -27,9 +27,16 @@ class TestDynamicQueue(TestCase):
>          self.dut_testpmd = PmdOutput(self.dut)
> 
>      def set_up(self):
> -        self.dut_testpmd.start_testpmd(
> -            "Default", "--port-topology=chained --txq=%s --rxq=%s"
> -            % (self.PF_QUEUE, self.PF_QUEUE))
> +        # Because of forville spirit limitation,can't use 2 ports for testing
> +        if (self.nic in ["fortville_spirit"]):
> +            self.dut_testpmd.start_testpmd(
> +                "Default", "--port-topology=chained --txq=%s --rxq=%s"
> +                % (self.PF_QUEUE, self.PF_QUEUE), eal_param="-w %s"
> +                % (self.dut.get_port_pci(self.dut_ports[0])))
> +        else:
> +            self.dut_testpmd.start_testpmd(
> +                "Default", "--port-topology=chained --txq=%s --rxq=%s"
> +                % (self.PF_QUEUE, self.PF_QUEUE))
> 
>      def element_strip(self, out, pattern):
>          """
> --
> 2.17.2

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

end of thread, other threads:[~2019-01-25  4:49 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-01-22  2:02 [dts] [PATCH V1] tests/dynamic_queue use whitelist for Forville_spirit zhuwenhui
2019-01-24  7:45 ` Yao, BingX Y
2019-01-25  4:49 ` 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).