From: "xiao,qimai" <qimaix.xiao@intel.com>
To: dts@dpdk.org
Cc: "xiao,qimai" <qimaix.xiao@intel.com>
Subject: [dts] [PATCH V1] update send_pakcet method to disperse pkts to all queues
Date: Tue, 2 Jul 2019 17:41:45 +0800 [thread overview]
Message-ID: <1562060505-128268-1-git-send-email-qimaix.xiao@intel.com> (raw)
update send_pakcet method to disperse pkts to all queues
Signed-off-by: xiao,qimai <qimaix.xiao@intel.com>
---
tests/TestSuite_runtime_vf_queue_number_kernel.py | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/tests/TestSuite_runtime_vf_queue_number_kernel.py b/tests/TestSuite_runtime_vf_queue_number_kernel.py
index 0dfac52..4232253 100644
--- a/tests/TestSuite_runtime_vf_queue_number_kernel.py
+++ b/tests/TestSuite_runtime_vf_queue_number_kernel.py
@@ -133,9 +133,11 @@ class TestRuntimeVfQueueNumberKernel(TestCase):
def send_packet2different_queue(self, dts, src, iface, count):
self.tester.scapy_foreground()
- for i in range(count):
- pkt = 'sendp([Ether(dst="%s", src="%s")/IP(src="10.0.0.1",dst="192.168.13.%d")/("test"*10)],iface="%s")' % (
- dts, src, (i % 254) + 1, iface)
+ for i in range(1,count+1):
+ j = (i//255)%255
+ k = i%255
+ pkt = 'sendp([Ether(dst="%s", src="%s")/IP(src="192.168.%d.%d",dst="192.168.13.%d")/("test"*10)],iface="%s")' % (
+ dts, src, j,k,k, iface)
self.tester.scapy_append(pkt)
self.tester.scapy_execute()
--
2.17.1
next reply other threads:[~2019-07-02 9:37 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-07-02 9:41 xiao,qimai [this message]
2019-07-03 5:36 ` Tu, Lijuan
2019-07-03 7:19 ` Zhang, YanX A
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=1562060505-128268-1-git-send-email-qimaix.xiao@intel.com \
--to=qimaix.xiao@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).