[dts] [PATCH V1] tests/dynamic_queue: add ringsize condition

lihong lihongx.ma at intel.com
Mon Jul 8 03:19:29 CEST 2019


Signed-off-by: lihong <lihongx.ma at intel.com>
---
 tests/TestSuite_dynamic_queue.py | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/tests/TestSuite_dynamic_queue.py b/tests/TestSuite_dynamic_queue.py
index f334a96..b055e5e 100644
--- a/tests/TestSuite_dynamic_queue.py
+++ b/tests/TestSuite_dynamic_queue.py
@@ -104,6 +104,8 @@ class TestDynamicQueue(TestCase):
                 pattern = "%s([0-9]+)" % qring_strip
                 qringsize = self.element_strip(out, pattern)
                 chg_qringsize = qringsize % 1024 + 256
+                if qringsize == 512:
+                    chg_qringsize = 256
                 self.dut_testpmd.execute_cmd(
                     'port config 0 rxq %d ring_size %d'
                     % (queue[i], chg_qringsize))
@@ -155,6 +157,8 @@ class TestDynamicQueue(TestCase):
                         "Fail to stop txq at runtime")
             if chgflag == 1:
                 chg_qringsize = qringsize % 1024 + 256
+                if qringsize == 512:
+                    chg_qringsize = 256
                 self.dut_testpmd.execute_cmd(
                     'port config 0 txq %d ring_size %d'
                     % (queue, chg_qringsize))
-- 
2.7.4



More information about the dts mailing list