[dts] [PATCH] queue_start_stop: Support test in vector mode

pvukkisala at marvell.com pvukkisala at marvell.com
Thu Jun 13 16:42:16 CEST 2019


From: Phanendra Vukkisala <pvukkisala at marvell.com>

Sending and expecting 4 packets instead of 1 to support vector mode

Signed-off-by: Phanendra Vukkisala <pvukkisala at marvell.com>
---
 tests/TestSuite_queue_start_stop.py |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tests/TestSuite_queue_start_stop.py b/tests/TestSuite_queue_start_stop.py
index 6cd6831..34a2f41 100644
--- a/tests/TestSuite_queue_start_stop.py
+++ b/tests/TestSuite_queue_start_stop.py
@@ -101,7 +101,7 @@ class TestQueueStartStop(TestCase):
         pkt = Packet(pkt_type="UDP", pkt_len=pktSize)
         inst = self.tester.tcpdump_sniff_packets(rxitf)
         pkt.config_layer('ether', {'dst': dmac})
-        pkt.send_pkt(tx_port=txitf)
+        pkt.send_pkt(tx_port=txitf, count=4)
         sniff_pkts = self.tester.load_tcpdump_sniff_packets(inst)
 
         if received:
@@ -157,7 +157,7 @@ class TestQueueStartStop(TestCase):
         except Exception, e:
             raise IOError("queue start/stop forward failure: %s" % e)
 
-        self.verify("ports 0 queue 0 receive 1 packages" in out, "start queue revice package failed, out = %s"%out)
+        self.verify("ports 0 queue 0 receive 4 packages" in out, "start queue revice package failed, out = %s"%out)
 
         try:
             # start tx queue test
-- 
1.7.9.5



More information about the dts mailing list