test suite reviews and discussions
 help / color / mirror / Atom feed
* [dts] [PATCH V1] tests/TestSuite_shutdown_api:Modify Max queue 16 to 8
@ 2020-05-13  9:14 xizhan4x
  2020-05-13  9:37 ` Zhang, XiX
  0 siblings, 1 reply; 3+ messages in thread
From: xizhan4x @ 2020-05-13  9:14 UTC (permalink / raw)
  To: dts; +Cc: xizhan4x


The maximum number of queues supported by some network cards is 8, so it is modified from 16 to 8

Signed-off-by: xizhan4x <xix.zhang@intel.com>
---
 tests/TestSuite_shutdown_api.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/tests/TestSuite_shutdown_api.py b/tests/TestSuite_shutdown_api.py
index dcbd59e..86b2e0a 100644
--- a/tests/TestSuite_shutdown_api.py
+++ b/tests/TestSuite_shutdown_api.py
@@ -791,10 +791,10 @@ class TestShutdownApi(TestCase):
         When rx_descriptor_status is used, status can be “AVAILABLE”, “DONE” or “UNAVAILABLE”.
         When tx_descriptor_status is used, status can be “FULL”, “DONE” or “UNAVAILABLE.”
         """
-        self.pmdout.start_testpmd("Default", "--portmask=%s --port-topology=loop --txq=16 --rxq=16 --txd=4096 --rxd=4096" % utils.create_mask(self.ports), socket=self.ports_socket)
+        self.pmdout.start_testpmd("Default", "--portmask=%s --port-topology=loop --txq=8 --rxq=8 --txd=4096 --rxd=4096" % utils.create_mask(self.ports), socket=self.ports_socket)
 
         for i in range(3):
-            rxqid = randint(0, 16)
+            rxqid = randint(0, 7)
             self.desc = randint(0, 4095)
             out = self.dut.send_expect("show port %s rxq %s desc %s status" % (self.ports[0], rxqid, self.desc), "testpmd> ")
             self.verify(
@@ -803,7 +803,7 @@ class TestShutdownApi(TestCase):
             self.verify(
                 "Bad arguments" not in out and "Invalid queueid" not in out,
                 "RX descriptor status is not supported")
-            txqid = randint(0, 16)
+            txqid = randint(0, 7)
             self.desc = randint(0, 511)
             out = self.dut.send_expect("show port %s txq %s desc %s status" % (self.ports[0], txqid, self.desc), "testpmd> ")
             self.verify(
-- 
2.17.2


^ permalink raw reply	[flat|nested] 3+ messages in thread
* [dts] [PATCH V1] tests/TestSuite_shutdown_api:Modify Max queue 16 to 8
@ 2020-05-13  8:41 xizhan4x
  0 siblings, 0 replies; 3+ messages in thread
From: xizhan4x @ 2020-05-13  8:41 UTC (permalink / raw)
  To: dts; +Cc: xizhan4x


Modify Max queue 16 to 8

Signed-off-by: xizhan4x <xix.zhang@intel.com>
---
 tests/TestSuite_shutdown_api.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/tests/TestSuite_shutdown_api.py b/tests/TestSuite_shutdown_api.py
index dcbd59e..86b2e0a 100644
--- a/tests/TestSuite_shutdown_api.py
+++ b/tests/TestSuite_shutdown_api.py
@@ -791,10 +791,10 @@ class TestShutdownApi(TestCase):
         When rx_descriptor_status is used, status can be “AVAILABLE”, “DONE” or “UNAVAILABLE”.
         When tx_descriptor_status is used, status can be “FULL”, “DONE” or “UNAVAILABLE.”
         """
-        self.pmdout.start_testpmd("Default", "--portmask=%s --port-topology=loop --txq=16 --rxq=16 --txd=4096 --rxd=4096" % utils.create_mask(self.ports), socket=self.ports_socket)
+        self.pmdout.start_testpmd("Default", "--portmask=%s --port-topology=loop --txq=8 --rxq=8 --txd=4096 --rxd=4096" % utils.create_mask(self.ports), socket=self.ports_socket)
 
         for i in range(3):
-            rxqid = randint(0, 16)
+            rxqid = randint(0, 7)
             self.desc = randint(0, 4095)
             out = self.dut.send_expect("show port %s rxq %s desc %s status" % (self.ports[0], rxqid, self.desc), "testpmd> ")
             self.verify(
@@ -803,7 +803,7 @@ class TestShutdownApi(TestCase):
             self.verify(
                 "Bad arguments" not in out and "Invalid queueid" not in out,
                 "RX descriptor status is not supported")
-            txqid = randint(0, 16)
+            txqid = randint(0, 7)
             self.desc = randint(0, 511)
             out = self.dut.send_expect("show port %s txq %s desc %s status" % (self.ports[0], txqid, self.desc), "testpmd> ")
             self.verify(
-- 
2.17.2


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

end of thread, other threads:[~2020-05-13  9:37 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-13  9:14 [dts] [PATCH V1] tests/TestSuite_shutdown_api:Modify Max queue 16 to 8 xizhan4x
2020-05-13  9:37 ` Zhang, XiX
  -- strict thread matches above, loose matches on Subject: below --
2020-05-13  8:41 xizhan4x

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).