From: Jogarao Nartu <njogarao@caviumnetworks.com>
To: yong.liu@intel.com
Cc: dts@dpdk.org, jerin.jacob@caviumnetworks.com,
Jogarao Nartu <njogarao@caviumnetworks.com>
Subject: [dts] [dpdk-dts] [PATCH v2] tests: disable VLAN filter for cavium nics
Date: Fri, 1 Dec 2017 16:38:39 +0530 [thread overview]
Message-ID: <1512126519-14522-1-git-send-email-njogarao@caviumnetworks.com> (raw)
In-Reply-To: <1511964077-3338-1-git-send-email-njogarao@caviumnetworks.com>
Testpmd must be run with hardware VLAN filter disabled as OcteonTx driver
does not support this feature.
Signed-off-by: Jogarao Nartu <njogarao@caviumnetworks.com>
---
v2 changes:
Made NIC name specific to Cavium OcteonTx
tests/TestSuite_unit_tests_dump.py | 21 ++++++++++++++++++---
1 file changed, 18 insertions(+), 3 deletions(-)
diff --git a/tests/TestSuite_unit_tests_dump.py b/tests/TestSuite_unit_tests_dump.py
index e36fa64..f7985f2 100644
--- a/tests/TestSuite_unit_tests_dump.py
+++ b/tests/TestSuite_unit_tests_dump.py
@@ -85,7 +85,12 @@ class TestUnitTestsDump(TestCase):
"""
Run history log dump test case.
"""
- self.dut.send_expect("./%s/app/testpmd -n 1 -c f -- -i" % (self.target), "testpmd>", self.start_test_time)
+ cmd = "./%s/app/testpmd -n 1 -c f -- -i" % self.target
+
+ if "cavium_a034" in self.dut.nic_type:
+ cmd += " --disable-hw-vlan-filter"
+
+ self.dut.send_expect("%s" % cmd, "testpmd>", self.start_test_time)
out = self.dut.send_expect("dump_ring", "testpmd>", self.run_cmd_time)
self.dut.send_expect("quit", "# ")
match_regex = "ring <(.*?)>"
@@ -100,7 +105,12 @@ class TestUnitTestsDump(TestCase):
"""
Run mempool dump test case.
"""
- self.dut.send_expect("./%s/app/testpmd -n 1 -c f -- -i" % (self.target), "testpmd>", self.start_test_time)
+ cmd = "./%s/app/testpmd -n 1 -c f -- -i" % self.target
+
+ if "cavium_a034" in self.dut.nic_type:
+ cmd += " --disable-hw-vlan-filter"
+
+ self.dut.send_expect("%s" % cmd, "testpmd>", self.start_test_time)
out = self.dut.send_expect("dump_mempool", "testpmd>", self.run_cmd_time * 2)
self.dut.send_expect("quit", "# ")
match_regex = "mempool <(.*?)>@0x(.*?)\r\n"
@@ -133,7 +143,12 @@ class TestUnitTestsDump(TestCase):
"""
Run memzone dump test case.
"""
- self.dut.send_expect("./%s/app/testpmd -n 1 -c f -- -i" % (self.target), "testpmd>", self.start_test_time)
+ cmd = "./%s/app/testpmd -n 1 -c f -- -i" % self.target
+
+ if "cavium_a034" in self.dut.nic_type:
+ cmd += " --disable-hw-vlan-filter"
+
+ self.dut.send_expect("%s" % cmd, "testpmd>", self.start_test_time)
out = self.dut.send_expect("dump_memzone", "testpmd>", self.run_cmd_time * 2)
self.dut.send_expect("quit", "# ")
--
2.7.4
next prev parent reply other threads:[~2017-12-01 11:09 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-11-29 14:01 [dts] [dpdk-dts] [PATCH] tests/dump: " Jogarao Nartu
2017-12-01 11:08 ` Jogarao Nartu [this message]
2017-12-04 9:16 ` [dts] [dpdk-dts] [PATCH v2] tests: " Liu, Yong
2017-12-12 19:59 ` Radoslaw Biernacki
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=1512126519-14522-1-git-send-email-njogarao@caviumnetworks.com \
--to=njogarao@caviumnetworks.com \
--cc=dts@dpdk.org \
--cc=jerin.jacob@caviumnetworks.com \
--cc=yong.liu@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).