From: lihong <lihongx.ma@intel.com>
To: dts@dpdk.org
Cc: lihong <lihongx.ma@intel.com>
Subject: [dts] [PATCH V1] increase send packet number when bonding mode is 5
Date: Tue, 7 May 2019 08:30:35 +0800 [thread overview]
Message-ID: <1557189035-17128-1-git-send-email-lihongx.ma@intel.com> (raw)
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
next reply other threads:[~2019-05-07 7:50 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-05-07 0:30 lihong [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1557189035-17128-1-git-send-email-lihongx.ma@intel.com \
--to=lihongx.ma@intel.com \
--cc=dts@dpdk.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).