[dts] [PATCH V1] tests/vlan_ethertype_config: fix script

Jiale Song songx.jiale at intel.com
Fri May 27 08:07:28 CEST 2022


fix 2 issue:
  1.IGC-I225_LM only support '0x8100' tpid in rx mode.
  2.IGC-I225_LM not suport vlan qinq, add to checklist.

Signed-off-by: Jiale Song <songx.jiale at intel.com>
---
 conf/test_case_checklist.json            | 3 ++-
 tests/TestSuite_vlan_ethertype_config.py | 6 +++---
 2 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/conf/test_case_checklist.json b/conf/test_case_checklist.json
index 2185fcaf..053841ce 100644
--- a/conf/test_case_checklist.json
+++ b/conf/test_case_checklist.json
@@ -2300,7 +2300,8 @@
                 "I40E_10G-SFP_X722",
                 "I40E_10G-10G_BASE_T_X722",
                 "cavium_a064",
-                "I40E_10G-10G_BASE_T_BC"
+                "I40E_10G-10G_BASE_T_BC",
+                "IGC-I225_LM"
             ],
             "Target": [
                 "ALL"
diff --git a/tests/TestSuite_vlan_ethertype_config.py b/tests/TestSuite_vlan_ethertype_config.py
index ce7f1c7b..43e36ead 100644
--- a/tests/TestSuite_vlan_ethertype_config.py
+++ b/tests/TestSuite_vlan_ethertype_config.py
@@ -209,7 +209,7 @@ class TestVlanEthertypeConfig(TestCase):
         self.dut.send_expect("vlan set strip off %s" % dutRxPortId, "testpmd> ", 20)
         rx_vlans = [1, random_vlan, MAX_VLAN]
         # caium_a063 card support only default '0x8100' tpid in rx mode
-        if self.nic in ["cavium_a063", "cavium_a064"]:
+        if self.nic in ["cavium_a063", "cavium_a064", "IGC-I225_LM"]:
             tpids = [0x8100]
         else:
             tpids = [0x8100, 0xA100]
@@ -242,7 +242,7 @@ class TestVlanEthertypeConfig(TestCase):
         self.dut.send_expect("start", "testpmd> ")
 
         # caium_a063 card support only default '0x8100' tpid in rx mode
-        if self.nic in ["cavium_a063", "cavium_a064"]:
+        if self.nic in ["cavium_a063", "cavium_a064", "IGC-I225_LM", "IGC-I225_LM"]:
             tpids = [0x8100]
         else:
             tpids = [0x8100, 0xA100]
@@ -275,7 +275,7 @@ class TestVlanEthertypeConfig(TestCase):
         self.dut.send_expect("start", "testpmd> ", 20)
 
         # caium_a063 card support only default '0x8100' tpid in rx mode
-        if self.nic in ["cavium_a063", "cavium_a064"]:
+        if self.nic in ["cavium_a063", "cavium_a064", "IGC-I225_LM"]:
             tpids = [0x8100]
         else:
             tpids = [0x8100, 0xA100]
-- 
2.25.1



More information about the dts mailing list