test suite reviews and discussions
 help / color / mirror / Atom feed
* [dts] [PATCH] TestSuite_skeleton.py: Modified send packet count to support vector mode
@ 2019-06-04  8:55 nareddy
  2019-06-05  5:39 ` Tu, Lijuan
  0 siblings, 1 reply; 2+ messages in thread
From: nareddy @ 2019-06-04  8:55 UTC (permalink / raw)
  To: dts; +Cc: fmasood, avijay, Praneeth Reddy

From: Praneeth Reddy <nareddy@marvell.com>

In vector mode minimum of 4 packets are required to forward.
Added packet count as 4 while sending packet from scapy.

Signed-off-by: Praneeth Reddy <nareddy@marvell.com>
---
 tests/TestSuite_skeleton.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/TestSuite_skeleton.py b/tests/TestSuite_skeleton.py
index 6958b32..91cf9c4 100644
--- a/tests/TestSuite_skeleton.py
+++ b/tests/TestSuite_skeleton.py
@@ -87,7 +87,7 @@ class TestSkeleton(TestCase):
         """
         Send a packet to port
         """
-        self.tester.scapy_append('sendp([Ether(dst="%s")/IP()/UDP()/Raw(\'X\'*18)], iface="%s")' % (self.mac, iface))
+        self.tester.scapy_append('sendp([Ether(dst="%s")/IP()/UDP()/Raw(\'X\'*18)], iface="%s", count=4)' % (self.mac, iface))
         self.tester.scapy_execute()
 
     def get_tcpdump_package(self,inst):
-- 
1.8.3.1


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

end of thread, other threads:[~2019-06-05  5:39 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-06-04  8:55 [dts] [PATCH] TestSuite_skeleton.py: Modified send packet count to support vector mode nareddy
2019-06-05  5:39 ` 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).