diff mbox series

[V1,3/8] tests/vlan: modify script and test plan to support i40e fimware > 8.3

Message ID 20221007115333.29277-3-weiyuanx.li@intel.com (mailing list archive)
State Superseded
Headers show
Series [V1,1/8] test_plans/dual_vlan: modify script and test plan to support i40e fimware > 8.3 | expand

Commit Message

Weiyuan Li Oct. 7, 2022, 11:53 a.m. UTC
Modify script and test plan to i40e support fimware > 8.3.
When the fimrware > 8.3, if the filter is to take effect need to enable
extend.

Signed-off-by: Weiyuan Li <weiyuanx.li@intel.com>
---
 tests/TestSuite_vlan.py | 12 +++++++++++-
 1 file changed, 11 insertions(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/tests/TestSuite_vlan.py b/tests/TestSuite_vlan.py
index 3d8811f9..c813f665 100644
--- a/tests/TestSuite_vlan.py
+++ b/tests/TestSuite_vlan.py
@@ -106,6 +106,11 @@  class TestVlan(TestCase):
             "rx_vlan add %d %s" % (self.vlan, dutRxPortId), "testpmd> "
         )
         self.dut.send_expect("vlan set strip off  %s" % dutRxPortId, "testpmd> ")
+        if self.kdriver == "i40e" and self.nic not in [
+            "I40E_10G-10G_BASE_T_X722",
+            "I40E_10G-SFP_X722",
+        ]:
+            self.dut.send_expect("vlan set extend on %s" % dutRxPortId, "testpmd> ")
         self.dut.send_expect("start", "testpmd> ", 120)
         out = self.dut.send_expect("show port info %s" % dutRxPortId, "testpmd> ", 20)
         self.verify("strip off" in out, "Wrong strip:" + out)
@@ -126,6 +131,11 @@  class TestVlan(TestCase):
         """
         Disable receipt of VLAN packets
         """
+        if self.kdriver == "i40e" and self.nic not in [
+            "I40E_10G-10G_BASE_T_X722",
+            "I40E_10G-SFP_X722",
+        ]:
+            self.dut.send_expect("vlan set extend on %s" % dutRxPortId, "testpmd> ")
         self.dut.send_expect("rx_vlan rm %d %s" % (self.vlan, dutRxPortId), "testpmd> ")
         self.dut.send_expect("start", "testpmd> ", 120)
         self.vlan_send_packet(self.vlan)
@@ -187,7 +197,7 @@  class TestVlan(TestCase):
         """
         Run after each test case.
         """
-        pass
+        self.dut.send_expect("vlan set extend off %s" % dutRxPortId, "testpmd> ")
 
     def tear_down_all(self):
         """