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

Weiyuan Li weiyuanx.li at intel.com
Fri Feb 3 07:25:12 CET 2023


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 at 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



More information about the dts mailing list