[dts] [PATCH] dynamic_queue: Fix Tx queue tests on cavium device
pvukkisala at marvell.com
pvukkisala at marvell.com
Mon Jul 15 08:43:25 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 b055e5e..906fff8 100644
--- a/tests/TestSuite_dynamic_queue.py
+++ b/tests/TestSuite_dynamic_queue.py
@@ -152,9 +152,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
if qringsize == 512:
--
1.7.9.5
More information about the dts
mailing list