From: "xu,huilong" <huilongx.xu@intel.com>
To: dts@dpdk.org
Cc: "xu,huilong" <huilongx.xu@intel.com>
Subject: [dts] [PATCH V1] fix tx_preparation failed case on fortville NIC
Date: Wed, 23 Aug 2017 15:15:55 +0800 [thread overview]
Message-ID: <1503472555-85796-1-git-send-email-huilongx.xu@intel.com> (raw)
1.use one port run test case
2.only sniff send packet from dut, and filter lldp packet.
Signed-off-by: xu,huilong <huilongx.xu@intel.com>
---
tests/TestSuite_tx_preparation.py | 15 ++++-----------
1 file changed, 4 insertions(+), 11 deletions(-)
diff --git a/tests/TestSuite_tx_preparation.py b/tests/TestSuite_tx_preparation.py
index 3c3080f..5916526 100644
--- a/tests/TestSuite_tx_preparation.py
+++ b/tests/TestSuite_tx_preparation.py
@@ -87,8 +87,9 @@ class TestTX_preparation(TestCase):
Run before each test case.
"""
self.dut_testpmd = PmdOutput(self.dut)
+ # use one port test the case
self.dut_testpmd.start_testpmd(
- "Default", "--port-topology=chained --max-pkt-len=%s" %Max_mtu)
+ "Default", " --portmask=1 --port-topology=chained --max-pkt-len=%s" %Max_mtu)
self.dmac = self.dut_testpmd.get_port_mac(0)
self.dut_testpmd.execute_cmd('set fwd csum')
self.dut_testpmd.execute_cmd('set verbose 1')
@@ -98,16 +99,8 @@ class TestTX_preparation(TestCase):
self.dut_testpmd.execute_cmd('csum set udp hw 0')
def start_tcpdump(self, rxItf):
-
- param = ""
- direct_param = r"(\s+)\[ -(\w) in\|out\|inout \]"
- tcpdump_help = subprocess.check_output("tcpdump -h; echo 0",
- stderr=subprocess.STDOUT,
- shell=True)
- for line in tcpdump_help.split('\n'):
- m = re.match(direct_param, line)
- if m:
- param = "-" + m.group(2) + " in"
+ # only sniff form dut packet and filter lldp packet
+ param = "ether[12:2]!=0x88cc and ether src %s" % self.dmac
self.tester.send_expect("rm -rf ./getPackageByTcpdump.cap", "#")
self.tester.send_expect("tcpdump %s -i %s -n -e -vv -w\
./getPackageByTcpdump.cap 2> /dev/null& " % (param,rxItf), "#")
--
1.9.3
next reply other threads:[~2017-08-23 7:14 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-08-23 7:15 xu,huilong [this message]
2017-08-24 13:31 ` Liu, Yong
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=1503472555-85796-1-git-send-email-huilongx.xu@intel.com \
--to=huilongx.xu@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).