test suite reviews and discussions
 help / color / mirror / Atom feed
* [dts] [PATCH V1] increase send packet number when bonding mode is 5
@ 2019-05-07  0:30 lihong
  2019-05-08  5:30 ` Wu, ChangqingX
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: lihong @ 2019-05-07  0:30 UTC (permalink / raw)
  To: dts; +Cc: lihong

when bonding mode is 5, the transmit should load balancing for tx,
if receive packet number not enough, it will not reflect the balance
state. So change the send packet number from 1000 to 100000.

Signed-off-by: lihong <lihongx.ma@intel.com>
---
 tests/TestSuite_pmd_bonded.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/tests/TestSuite_pmd_bonded.py b/tests/TestSuite_pmd_bonded.py
index 2d4856a..78d5d21 100644
--- a/tests/TestSuite_pmd_bonded.py
+++ b/tests/TestSuite_pmd_bonded.py
@@ -196,7 +196,7 @@ class TestPmdBonded(TestCase):
         """
         Send count packet to portid
         count: 1 or 2 or 3 or ... or 'MANY'
-               if count is 'MANY', then set count=1000,
+               if count is 'MANY', then set count=100000,
                send packets during 5 seconds.
         ether_ip:
             'ether':
@@ -226,7 +226,7 @@ class TestPmdBonded(TestCase):
         except ValueError as e:
             if count == 'MANY':
                 during = 5
-                count = 1000
+                count = 100000
             else:
                 raise e
 
@@ -261,7 +261,7 @@ UDP(sport=srcport, dport=destport)/Raw(load="\x50"*%s)], iface="%s", count=%d)'
                 self.tester.scapy_append('sendp([Ether(dst=nutmac, src=srcmac)/Dot1Q(vlan=vlanvalue)/IP(dst=destip, src=srcip, len=%s)/\
 UDP(sport=srcport, dport=destport)/Raw(load="\x50"*%s)], iface="%s", count=%d)' % (pktlen, padding, itf, count))
 
-            self.tester.scapy_execute()
+            self.tester.scapy_execute(timeout=180)
             loop += 1
 
             now = time.time()
-- 
2.7.4


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

end of thread, other threads:[~2019-05-22  3:26 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-05-07  0:30 [dts] [PATCH V1] increase send packet number when bonding mode is 5 lihong
2019-05-08  5:30 ` Wu, ChangqingX
2019-05-08  7:17 ` Li, WenjieX A
2019-05-17  8:25 ` Chen, Zhaoyan
2019-05-22  3:26 ` 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).