From: yufengmx <yufengx.mo@intel.com>
To: dts@dpdk.org, lijuan.tu@intel.com, lihongx.ma@intel.com
Cc: yufengmx <yufengx.mo@intel.com>
Subject: [dts] [PATCH V1 1/1] optimize packet send and capture
Date: Wed, 19 Feb 2020 15:08:55 +0800 [thread overview]
Message-ID: <20200219070855.25471-2-yufengx.mo@intel.com> (raw)
In-Reply-To: <20200219070855.25471-1-yufengx.mo@intel.com>
optimize packet send and capture for x722.
Signed-off-by: yufengmx <yufengx.mo@intel.com>
---
tests/TestSuite_ipv4_reassembly.py | 11 +++++++++--
1 file changed, 9 insertions(+), 2 deletions(-)
diff --git a/tests/TestSuite_ipv4_reassembly.py b/tests/TestSuite_ipv4_reassembly.py
index 3f33809..8d69ac6 100644
--- a/tests/TestSuite_ipv4_reassembly.py
+++ b/tests/TestSuite_ipv4_reassembly.py
@@ -209,7 +209,7 @@ class TestIpReassembly(TestCase):
self.tester.scapy_append(
'pcap = rdpcap("%s")' % self.test_config.pcap_file)
self.tester.scapy_append(
- 'sendp(pcap, iface="%s")' % self.test_config.tester_iface)
+ 'sendp(pcap, iface="%s", verbose=False)' % self.test_config.tester_iface)
self.tester.scapy_execute()
time.sleep(5)
@@ -226,6 +226,12 @@ class TestIpReassembly(TestCase):
os.remove(self.test_config.pcap_file)
time.sleep(5)
+ @property
+ def wait_interval_for_tcpdump(self):
+ interval = 5 if self.nic in ["x722_37d2"] \
+ else 0
+ return interval
+
def tcpdump_start_sniffing(self):
"""
Starts tcpdump in the background to sniff the tester interface where
@@ -238,12 +244,13 @@ class TestIpReassembly(TestCase):
self.test_config.tester_iface)
self.tester.send_expect('rm -f tcpdump.pcap', '#')
self.tester.send_expect(command, '#')
+ time.sleep(self.wait_interval_for_tcpdump)
def tcpdump_stop_sniff(self):
"""
Stops the tcpdump process running in the background.
"""
-
+ time.sleep(self.wait_interval_for_tcpdump)
self.tester.send_expect('killall tcpdump', '#')
# For the [pid]+ Done tcpdump... message after killing the process
self.tester.send_expect('cat tcpdump.out', '#')
--
2.21.0
next prev parent reply other threads:[~2020-02-19 7:05 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-02-19 7:08 [dts] [PATCH V1 0/1] tests/ipv4_reassembly: " yufengmx
2020-02-19 7:08 ` yufengmx [this message]
2020-02-21 1:51 ` [dts] [PATCH V1 1/1] " 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=20200219070855.25471-2-yufengx.mo@intel.com \
--to=yufengx.mo@intel.com \
--cc=dts@dpdk.org \
--cc=lihongx.ma@intel.com \
--cc=lijuan.tu@intel.com \
/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).