test suite reviews and discussions
 help / color / mirror / Atom feed
From: "xu,gang" <gangx.xu@intel.com>
To: dts@dpdk.org
Cc: "xu,gang" <gangx.xu@intel.com>
Subject: [dts] [PATCH V1] fix disable-hw-vlan issue
Date: Thu,  1 Feb 2018 17:12:26 +0800	[thread overview]
Message-ID: <1517476346-38112-1-git-send-email-gangx.xu@intel.com> (raw)

"--disable-hw-vlan" testpmd parameter are dropped now because 
the vlan rx offload are default off, instead "--enable-hw-vlan"
new parameter is added. 

Signed-off-by: xu,gang <gangx.xu@intel.com>
---
 tests/TestSuite_checksum_offload.py | 2 +-
 tests/TestSuite_pmd.py              | 2 +-
 tests/TestSuite_vlan.py             | 1 +
 3 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/tests/TestSuite_checksum_offload.py b/tests/TestSuite_checksum_offload.py
index 4183ead..2ff5c2f 100644
--- a/tests/TestSuite_checksum_offload.py
+++ b/tests/TestSuite_checksum_offload.py
@@ -66,7 +66,7 @@ class TestChecksumOffload(TestCase):
         Run before each test case.
         """
         self.pmdout.start_testpmd("Default", "--portmask=%s " %
-                                  (self.portMask) + "--disable-hw-vlan --enable-rx-cksum " +
+                                  (self.portMask) + " --enable-rx-cksum " +
                                   "--port-topology=loop", socket=self.ports_socket)
         self.dut.send_expect("set verbose 1", "testpmd>")
         self.dut.send_expect("set fwd csum", "testpmd>")
diff --git a/tests/TestSuite_pmd.py b/tests/TestSuite_pmd.py
index a159143..f5df8d5 100644
--- a/tests/TestSuite_pmd.py
+++ b/tests/TestSuite_pmd.py
@@ -329,7 +329,7 @@ class TestPmd(TestCase,IxiaPacketGenerator):
 
         for rxfreet_value in self.rxfreet_values:
 
-            self.pmdout.start_testpmd("1S/2C/1T", "--portmask=%s --enable-rx-cksum --disable-hw-vlan --disable-rss --rxd=1024 --txd=1024 --rxfreet=%d" % ( port_mask, rxfreet_value), socket=self.ports_socket)
+            self.pmdout.start_testpmd("1S/2C/1T", "--portmask=%s --enable-rx-cksum --disable-rss --rxd=1024 --txd=1024 --rxfreet=%d" % ( port_mask, rxfreet_value), socket=self.ports_socket)
             self.dut.send_expect("set fwd csum", "testpmd> ")
             self.dut.send_expect("start", "testpmd> ")
 
diff --git a/tests/TestSuite_vlan.py b/tests/TestSuite_vlan.py
index 1e2076f..0f1833b 100644
--- a/tests/TestSuite_vlan.py
+++ b/tests/TestSuite_vlan.py
@@ -151,6 +151,7 @@ class TestVlan(TestCase):
         """
         Disable receipt of VLAN packets
         """
+        self.dut.send_expect("vlan set filter on %s" % dutRxPortId, "testpmd> ")
 
         self.dut.send_expect("rx_vlan rm %d %s" % (self.vlan, dutRxPortId), "testpmd> ")
         self.dut.send_expect("start", "testpmd> ", 120)
-- 
1.9.3

             reply	other threads:[~2018-02-01  9:11 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-02-01  9:12 xu,gang [this message]
2018-02-02 16:12 ` 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=1517476346-38112-1-git-send-email-gangx.xu@intel.com \
    --to=gangx.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).