test suite reviews and discussions
 help / color / mirror / Atom feed
From: Weiyuan Li <weiyuanx.li@intel.com>
To: dts@dpdk.org
Cc: Weiyuan Li <weiyuanx.li@intel.com>
Subject: [dts][PATCH V1 2/2] tests/vf_vlan: optimize script test step rx does not support IXGBE
Date: Fri,  3 Feb 2023 14:25:12 +0800	[thread overview]
Message-ID: <20230203062512.2436-2-weiyuanx.li@intel.com> (raw)
In-Reply-To: <20230203062512.2436-1-weiyuanx.li@intel.com>

The ixgbe kernel driver does not support rx path hw vlan, parameter "--enable-hw-vlan" not support nic IXGBE_10G-82599_SFP.

Signed-off-by: Weiyuan Li <weiyuanx.li@intel.com>
---
 tests/TestSuite_vf_vlan.py | 13 +++++++++++--
 1 file changed, 11 insertions(+), 2 deletions(-)

diff --git a/tests/TestSuite_vf_vlan.py b/tests/TestSuite_vf_vlan.py
index 563d06b6..b19f5172 100644
--- a/tests/TestSuite_vf_vlan.py
+++ b/tests/TestSuite_vf_vlan.py
@@ -344,7 +344,11 @@ class TestVfVlan(TestCase):
         self.vm0_dut_ports = self.vm_dut_0.get_ports("any")
 
         self.vm0_testpmd = PmdOutput(self.vm_dut_0)
-        param = "--enable-hw-vlan" if not self.dcf_mode else ""
+        param = (
+            "--enable-hw-vlan"
+            if not self.dcf_mode and self.kdriver is not "ixgbe"
+            else ""
+        )
         self.launch_testpmd(dcf_flag=self.dcf_mode, param=param)
         self.vm0_testpmd.execute_cmd("set fwd rxonly")
         self.vm0_testpmd.execute_cmd("set verbose 1")
@@ -424,7 +428,12 @@ class TestVfVlan(TestCase):
         self.vm0_dut_ports = self.vm_dut_0.get_ports("any")
 
         self.vm0_testpmd = PmdOutput(self.vm_dut_0)
-        param = "--enable-hw-vlan" if not self.dcf_mode else ""
+        param = (
+            "--enable-hw-vlan"
+            if not self.dcf_mode and self.kdriver is not "ixgbe"
+            else ""
+        )
+
         self.launch_testpmd(dcf_flag=self.dcf_mode, param=param)
         self.vm0_testpmd.execute_cmd("set fwd rxonly")
         self.vm0_testpmd.execute_cmd("set verbose 1")
-- 
2.25.1


  reply	other threads:[~2023-02-03  6:20 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-02-03  6:25 [dts][PATCH V1 1/2] test_plans/vf_vlan: " Weiyuan Li
2023-02-03  6:25 ` Weiyuan Li [this message]
2023-03-07  3:52   ` [dts][PATCH V1 2/2] tests/vf_vlan: " lijuan.tu

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=20230203062512.2436-2-weiyuanx.li@intel.com \
    --to=weiyuanx.li@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).