[dts] [PATCH] dynamic_queue: Fix Tx queue tests on cavium device
pvukkisala at marvell.com
pvukkisala at marvell.com
Thu Jul 4 15:57:23 CEST 2019
From: Phanendra Vukkisala <pvukkisala at marvell.com>
our pmd completely blocks queuing up the pkts into TXD when queue is in stop state
Signed-off-by: Phanendra Vukkisala <pvukkisala at marvell.com>
---
tests/TestSuite_dynamic_queue.py | 10 +++++++---
1 file changed, 7 insertions(+), 3 deletions(-)
diff --git a/tests/TestSuite_dynamic_queue.py b/tests/TestSuite_dynamic_queue.py
index f334a96..912e858 100644
--- a/tests/TestSuite_dynamic_queue.py
+++ b/tests/TestSuite_dynamic_queue.py
@@ -150,9 +150,13 @@ class TestDynamicQueue(TestCase):
out = self.dut_testpmd.execute_cmd('stop')
tx_num = qringsize - 1
- # Check Tx stopped queue only transmits qringsize-1 packets
- self.verify("TX-packets: %d" % tx_num in out,
- "Fail to stop txq at runtime")
+ if self.nic == "cavium_a063":
+ self.verify("TX-packets: 0" in out,
+ "Fail to stop txq at runtime")
+ else:
+ # Check Tx stopped queue only transmits qringsize-1 packets
+ self.verify("TX-packets: %d" % tx_num in out,
+ "Fail to stop txq at runtime")
if chgflag == 1:
chg_qringsize = qringsize % 1024 + 256
self.dut_testpmd.execute_cmd(
--
1.7.9.5
More information about the dts
mailing list