From: "xiao,qimai" <qimaix.xiao@intel.com>
To: dts@dpdk.org
Cc: "xiao,qimai" <qimaix.xiao@intel.com>
Subject: [dts] [PATCH V1] update flow_classify_softnic to reduce runtime
Date: Sun, 28 Apr 2019 18:12:50 +0800 [thread overview]
Message-ID: <1556446370-16506-1-git-send-email-qimaix.xiao@intel.com> (raw)
optimize function of send package with scapy
Signed-off-by: xiao,qimai <qimaix.xiao@intel.com>
---
tests/TestSuite_flow_classify_softnic.py | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/tests/TestSuite_flow_classify_softnic.py b/tests/TestSuite_flow_classify_softnic.py
index c98e8d0..9b339ca 100644
--- a/tests/TestSuite_flow_classify_softnic.py
+++ b/tests/TestSuite_flow_classify_softnic.py
@@ -275,7 +275,7 @@ class TestFlowClassifySoftnic(TestCase):
packet = r'sendp([Ether(dst="%s", src=get_if_hwaddr("%s"))/IP(src="%s.%d", dst="%s", proto=17)/UDP(sport=100, dport=200)], iface="%s")' % (
self.dut_p0_mac, itf, ipaddr, i, dst_addr, itf)
self.tester.scapy_append(packet)
- self.tester.scapy_execute()
+ self.tester.scapy_execute()
elif ptype == "ipv6":
var = src_addr.split(":")
string = ":"
@@ -287,7 +287,7 @@ class TestFlowClassifySoftnic(TestCase):
packet = r'sendp([Ether(dst="%s", src=get_if_hwaddr("%s"))/IPv6(src="%s:%d", dst="%s", nh=17)/UDP(sport=100, dport=200)], iface="%s")' % (
self.dut_p0_mac, itf, ipaddr, i, dst_addr, itf)
self.tester.scapy_append(packet)
- self.tester.scapy_execute()
+ self.tester.scapy_execute()
elif src_dst == "dst":
if ptype == "ipv4":
@@ -298,7 +298,7 @@ class TestFlowClassifySoftnic(TestCase):
packet = r'sendp([Ether(dst="%s", src=get_if_hwaddr("%s"))/IP(src="%s", dst="%s.%d", proto=17)/UDP(sport=100, dport=100)], iface="%s")' % (
self.dut_p0_mac, itf, src_addr, ipaddr, i, itf)
self.tester.scapy_append(packet)
- self.tester.scapy_execute()
+ self.tester.scapy_execute()
elif ptype == "ipv6":
var = dst_addr.split(":")
string = ":"
@@ -310,7 +310,7 @@ class TestFlowClassifySoftnic(TestCase):
packet = r'sendp([Ether(dst="%s", src=get_if_hwaddr("%s"))/IPv6(src="%s", dst="%s:%d", nh=17)/UDP(sport=100, dport=200)], iface="%s")' % (
self.dut_p0_mac, itf, src_addr, ipaddr, i, itf)
self.tester.scapy_append(packet)
- self.tester.scapy_execute()
+ self.tester.scapy_execute()
def check_packet_queue(self, queues=[], out=""):
"""
--
2.17.0
next reply other threads:[~2019-04-28 10:08 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-04-28 10:12 xiao,qimai [this message]
2019-04-29 5:30 ` Peng, Yuan
2019-05-13 2:30 ` 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=1556446370-16506-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).