test suite reviews and discussions
 help / color / mirror / Atom feed
From: Weiyuan Li <weiyuanx.li@intel.com>
To: dts@dpdk.org
Cc: Weiyuan Li <weiyuanx.li@intel.com>
Subject: [dts][PATCH V1 5/8] tests/vlan_ethertype_config: modify script and test plan to support i40e fimware > 8.3
Date: Fri,  7 Oct 2022 19:53:30 +0800	[thread overview]
Message-ID: <20221007115333.29277-5-weiyuanx.li@intel.com> (raw)
In-Reply-To: <20221007115333.29277-1-weiyuanx.li@intel.com>

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_ethertype_config.py | 14 +++++++++++++-
 1 file changed, 13 insertions(+), 1 deletion(-)

diff --git a/tests/TestSuite_vlan_ethertype_config.py b/tests/TestSuite_vlan_ethertype_config.py
index b641d928..1e2b9e24 100644
--- a/tests/TestSuite_vlan_ethertype_config.py
+++ b/tests/TestSuite_vlan_ethertype_config.py
@@ -194,6 +194,13 @@ class TestVlanEthertypeConfig(TestCase):
                 self.dut.send_expect(
                     "vlan set filter on  %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> ")
                 self.check_vlan_packets(rx_vlan, tpid, self.rxItf, False)
                 # test vlan filter off
@@ -209,8 +216,13 @@ class TestVlanEthertypeConfig(TestCase):
         random_vlan = random.randint(1, MAX_VLAN - 1)
         rx_vlans = [1, random_vlan, MAX_VLAN]
         self.dut.send_expect("set fwd mac", "testpmd> ")
-        self.dut.send_expect("vlan set filter on  %s" % dutRxPortId, "testpmd> ")
+        self.dut.send_expect("vlan set filter on %s" % dutRxPortId, "testpmd> ")
         self.dut.send_expect("vlan set strip off %s" % dutRxPortId, "testpmd> ", 20)
+        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> ")
 
         # caium_a063 card support only default '0x8100' tpid in rx mode
-- 
2.27.0


  parent reply	other threads:[~2022-10-07 11:53 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-10-07 11:53 [dts][PATCH V1 1/8] test_plans/dual_vlan: " Weiyuan Li
2022-10-07 11:53 ` [dts][PATCH V1 2/8] test_plans/vlan: " Weiyuan Li
2022-10-07 11:53 ` [dts][PATCH V1 3/8] tests/vlan: " Weiyuan Li
2022-10-07 11:53 ` [dts][PATCH V1 4/8] test_plans/vlan_ethertype_config: " Weiyuan Li
2022-10-07 11:53 ` Weiyuan Li [this message]
2022-10-07 11:53 ` [dts][PATCH V1 6/8] test_plans/ipgre: " Weiyuan Li
2022-10-07 11:53 ` [dts][PATCH V1 7/8] tests/ipgre: " Weiyuan Li
2022-10-07 11:53 ` [dts][PATCH V1 8/8] tests/dual_vlan: " Weiyuan Li

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=20221007115333.29277-5-weiyuanx.li@intel.com \
    --to=weiyuanx.li@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).