test suite reviews and discussions
 help / color / mirror / Atom feed
From: Weiyuan Li <weiyuanx.li@intel.com>
To: dts@dpdk.org, lijuan.tu@intel.com
Cc: Weiyuan Li <weiyuanx.li@intel.com>
Subject: [dts][PATCH V2 6/8] tests/ipgre: modify script and test plan to support i40e fimware > 8.3
Date: Thu, 10 Nov 2022 13:33:56 +0800	[thread overview]
Message-ID: <20221110053358.437591-6-weiyuanx.li@intel.com> (raw)
In-Reply-To: <20221110053358.437591-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>
---

v2:
-use the firmware version to judge whether to add command `extend on`.

 tests/TestSuite_ipgre.py | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/tests/TestSuite_ipgre.py b/tests/TestSuite_ipgre.py
index cd50c1c4..c9371678 100644
--- a/tests/TestSuite_ipgre.py
+++ b/tests/TestSuite_ipgre.py
@@ -309,9 +309,22 @@ class TestIpgre(TestCase):
                 socket=self.ports_socket,
             )
 
+        # Get the firmware version information
+        try:
+            fwversion, _, _ = self.pmdout.get_firmware_version(
+                self.dut_ports[0]
+            ).split()
+        except ValueError:
+            # nic IXGBE, IGC
+            fwversion = self.pmdout.get_firmware_version(self.dut_ports[0]).split()
+
         self.dut.send_expect("set fwd rxonly", "testpmd>")
         self.dut.send_expect("set verbose 1", "testpmd>")
         self.dut.send_expect("start", "testpmd>")
+        # Because the kernel forces enable Qinq and cannot be closed,
+        # the dpdk can only add 'extend on' to make the single VLAN filter work normally.
+        if self.kdriver == "i40e" and fwversion >= "8.40":
+            self.dut.send_expect("vlan set extend off 0", "testpmd>")
 
         # inner ipv4
         config_layers = {
-- 
2.27.0


  parent reply	other threads:[~2022-11-10  5:29 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-11-10  5:33 [dts][PATCH V2 1/8] test_plans/vlan: " Weiyuan Li
2022-11-10  5:33 ` [dts][PATCH V2 2/8] tests/vlan_ethertype_config: " Weiyuan Li
2022-11-10  5:33 ` [dts][PATCH V2 3/8] test_plans/vlan: " Weiyuan Li
2022-11-10  5:33 ` [dts][PATCH V2 4/8] tests/vlan: " Weiyuan Li
2022-11-10  5:33 ` [dts][PATCH V2 5/8] test_plans/ipgre: " Weiyuan Li
2022-11-10  5:33 ` Weiyuan Li [this message]
2022-11-10  5:33 ` [dts][PATCH V2 7/8] test_plans/dual_vlan: " Weiyuan Li
2022-11-10  5:33 ` [dts][PATCH V2 8/8] tests/dual_vlan: " Weiyuan Li
2022-11-18  1:59   ` Jiale, SongX

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=20221110053358.437591-6-weiyuanx.li@intel.com \
    --to=weiyuanx.li@intel.com \
    --cc=dts@dpdk.org \
    --cc=lijuan.tu@intel.com \
    /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).