test suite reviews and discussions
 help / color / mirror / Atom feed
From: Jiale Song <songx.jiale@intel.com>
To: dts@dpdk.org
Cc: Jiale Song <songx.jiale@intel.com>
Subject: [dts] [PATCH V1] tests/vf_vlan: ixgbe to support vlan insert
Date: Fri, 16 Jun 2023 18:12:12 +0800	[thread overview]
Message-ID: <20230616101212.1456780-1-songx.jiale@intel.com> (raw)

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset=y, Size: 2529 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 | 23 -----------------------
 tests/TestSuite_vf_vlan.py      |  6 ++----
 2 files changed, 2 insertions(+), 27 deletions(-)

diff --git a/conf/test_case_supportlist.json b/conf/test_case_supportlist.json
index d07c9698..8595d688 100644
--- a/conf/test_case_supportlist.json
+++ b/conf/test_case_supportlist.json
@@ -1,27 +1,4 @@
 {
-    "vf_vlan_tx": [
-        {
-            "OS": [
-                "ALL"
-            ],
-            "NIC": [
-                "I40E_10G-SFP_X710",
-                "I40E_40G-QSFP_A",
-                "I40E_25G-25G_SFP28",
-                "I40E_10G-10G_BASE_T_X722",
-                "I40E_10G-SFP_X722",
-                "I40E_10G-10G_BASE_T_BC",
-                "ICE_25G-E810C_SFP",
-		        "ICE_25G-E823C_QSFP",
-                "ICE_100G-E810C_QSFP"
-            ],
-            "Target": [
-                "ALL"
-            ],
-            "Bug ID": "",
-            "Comments": "the nic on the environment not support this case"
-        }
-    ],
     "dpdk_2pf_2vf_1vm_mac_add_filter": [
         {
             "OS": [
diff --git a/tests/TestSuite_vf_vlan.py b/tests/TestSuite_vf_vlan.py
index ebdf9207..0f2dbf5d 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,9 +364,8 @@ 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":
-                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("vlan set filter on 0")
+            self.vm0_testpmd.execute_cmd("rx_vlan add %d 0" % tx_vlan)
             self.vm0_testpmd.execute_cmd("stop")
             self.vm0_testpmd.execute_cmd("port stop all")
             self.vm0_testpmd.execute_cmd("tx_vlan set 0 %d" % tx_vlan)
-- 
2.25.1


                 reply	other threads:[~2023-06-16  2:01 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20230616101212.1456780-1-songx.jiale@intel.com \
    --to=songx.jiale@intel.com \
    --cc=dts@dpdk.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).