[V1,2/2] tests/vf_vlan: optimize script test step rx does not support IXGBE

Message ID 20230203062512.2436-2-weiyuanx.li@intel.com (mailing list archive)
State Accepted
Headers
Series [V1,1/2] test_plans/vf_vlan: optimize script test step rx does not support IXGBE |

Checks

Context Check Description
ci/Intel-dts-format-test success Testing OK
ci/Intel-dts-pylama-test success Testing OK
ci/Intel-dts-doc-test success Testing OK
ci/Intel-dts-suite-test success Testing OK

Commit Message

Weiyuan Li Feb. 3, 2023, 6:25 a.m. UTC
  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(-)
  

Comments

Tu, Lijuan March 7, 2023, 3:52 a.m. UTC | #1
On Fri,  3 Feb 2023 14:25:12 +0800, Weiyuan Li <weiyuanx.li@intel.com> wrote:
> 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>


Series applied, thanks
  

Patch

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")