test suite reviews and discussions
 help / color / mirror / Atom feed
* [dts] [PATCH] queue_start_stop: Support test in vector mode
@ 2019-06-13 14:42 pvukkisala
  2019-06-14  3:11 ` Tu, Lijuan
  0 siblings, 1 reply; 2+ messages in thread
From: pvukkisala @ 2019-06-13 14:42 UTC (permalink / raw)
  To: dts; +Cc: avijay, fmasood, Phanendra Vukkisala

From: Phanendra Vukkisala <pvukkisala@marvell.com>

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

Signed-off-by: Phanendra Vukkisala <pvukkisala@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


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

* Re: [dts] [PATCH] queue_start_stop: Support test in vector mode
  2019-06-13 14:42 [dts] [PATCH] queue_start_stop: Support test in vector mode pvukkisala
@ 2019-06-14  3:11 ` Tu, Lijuan
  0 siblings, 0 replies; 2+ messages in thread
From: Tu, Lijuan @ 2019-06-14  3:11 UTC (permalink / raw)
  To: pvukkisala, dts; +Cc: avijay, fmasood

Applied, thanks

> -----Original Message-----
> From: dts [mailto:dts-bounces@dpdk.org] On Behalf Of
> pvukkisala@marvell.com
> Sent: Thursday, June 13, 2019 10:42 PM
> To: dts@dpdk.org
> Cc: avijay@marvell.com; fmasood@marvell.com; Phanendra Vukkisala
> <pvukkisala@marvell.com>
> Subject: [dts] [PATCH] queue_start_stop: Support test in vector mode
> 
> From: Phanendra Vukkisala <pvukkisala@marvell.com>
> 
> Sending and expecting 4 packets instead of 1 to support vector mode
> 
> Signed-off-by: Phanendra Vukkisala <pvukkisala@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


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

end of thread, other threads:[~2019-06-14  3:12 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-06-13 14:42 [dts] [PATCH] queue_start_stop: Support test in vector mode pvukkisala
2019-06-14  3:11 ` Tu, Lijuan

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