[V1] tests/vlan_ethertype_config: fix script

Message ID 20220527060728.180550-1-songx.jiale@intel.com (mailing list archive)
State Accepted
Headers
Series [V1] tests/vlan_ethertype_config: fix script |

Checks

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

Commit Message

Jiale, SongX May 27, 2022, 6:07 a.m. UTC
  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@intel.com>
---
 conf/test_case_checklist.json            | 3 ++-
 tests/TestSuite_vlan_ethertype_config.py | 6 +++---
 2 files changed, 5 insertions(+), 4 deletions(-)
  

Comments

Tu, Lijuan May 28, 2022, 8:35 a.m. UTC | #1
On Fri, 27 May 2022 14:07:28 +0800, Jiale Song <songx.jiale@intel.com> wrote:
> 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@intel.com>


Applied, thanks
  

Patch

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]