test suite reviews and discussions
 help / color / mirror / Atom feed
* [dts] [PATCH V2] tests/vf_vlan: ixgbe to support vlan insert
@ 2023-06-19 14:20 Jiale Song
  0 siblings, 0 replies; only message in thread
From: Jiale Song @ 2023-06-19 14:20 UTC (permalink / raw)
  To: dts; +Cc: Jiale Song

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset=y, Size: 2061 bytes --]

modify the script to test the ixgbe vf vlan insert function.

Signed-off-by: Jiale Song <songx.jiale@intel.com>
---
 conf/test_case_supportlist.json | 5 +++--
 tests/TestSuite_vf_vlan.py      | 7 +++++--
 2 files changed, 8 insertions(+), 4 deletions(-)

-v2:
 Reduce the impact on other network cards.

diff --git a/conf/test_case_supportlist.json b/conf/test_case_supportlist.json
index d07c9698..e33c3ed6 100644
--- a/conf/test_case_supportlist.json
+++ b/conf/test_case_supportlist.json
@@ -12,8 +12,9 @@
                 "I40E_10G-SFP_X722",
                 "I40E_10G-10G_BASE_T_BC",
                 "ICE_25G-E810C_SFP",
-		        "ICE_25G-E823C_QSFP",
-                "ICE_100G-E810C_QSFP"
+	        "ICE_25G-E823C_QSFP",
+                "ICE_100G-E810C_QSFP",
+		"IXGBE_10G-82599_SFP"
             ],
             "Target": [
                 "ALL"
diff --git a/tests/TestSuite_vf_vlan.py b/tests/TestSuite_vf_vlan.py
index ebdf9207..623037f1 100644
--- a/tests/TestSuite_vf_vlan.py
+++ b/tests/TestSuite_vf_vlan.py
@@ -348,7 +348,6 @@ class TestVfVlan(TestCase):
         self.verify(tx_vlan in vlans, "Tx packet with vlan not received!!!")
 
     def execute_vf_vlan_tx(self, specific_bitwidth=None):
-        self.verify(self.kdriver not in ["ixgbe"], "NIC Unsupported: " + str(self.nic))
         random_vlan = random.randint(1, MAX_VLAN)
         tx_vlans = [1, random_vlan, MAX_VLAN]
         # start testpmd in VM
@@ -365,7 +364,11 @@ class TestVfVlan(TestCase):
             # for Intel® Ethernet 700 Series ,
             # if you want insert tx_vlan,
             # please enable rx_vlan at the same time
-            if self.kdriver == "i40e" or self.kdriver == "ice":
+            if (
+                self.kdriver == "i40e"
+                or self.kdriver == "ice"
+                or self.kdriver == "ixgbe"
+            ):
                 self.vm0_testpmd.execute_cmd("vlan set filter on 0")
                 self.vm0_testpmd.execute_cmd("rx_vlan add %d 0" % tx_vlan)
             self.vm0_testpmd.execute_cmd("stop")
-- 
2.25.1


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-06-19  6:10 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-06-19 14:20 [dts] [PATCH V2] tests/vf_vlan: ixgbe to support vlan insert Jiale Song

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).