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 V2 03/10] tests/cvl_advanced_iavf_rss_vlan_esp_ah_l2tp_pfcp: update case code for driver change
Date: Tue,  2 Nov 2021 16:11:53 +0800	[thread overview]
Message-ID: <1635840720-90878-3-git-send-email-songx.jiale@intel.com> (raw)
In-Reply-To: <1635840720-90878-1-git-send-email-songx.jiale@intel.com>

Signed-off-by: Jiale Song <songx.jiale@intel.com>
---
 ...tSuite_cvl_advanced_iavf_rss_vlan_esp_ah_l2tp_pfcp.py | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/tests/TestSuite_cvl_advanced_iavf_rss_vlan_esp_ah_l2tp_pfcp.py b/tests/TestSuite_cvl_advanced_iavf_rss_vlan_esp_ah_l2tp_pfcp.py
index df2f8d58..6775d81f 100644
--- a/tests/TestSuite_cvl_advanced_iavf_rss_vlan_esp_ah_l2tp_pfcp.py
+++ b/tests/TestSuite_cvl_advanced_iavf_rss_vlan_esp_ah_l2tp_pfcp.py
@@ -858,7 +858,11 @@ class Cvl_advance_iavf_rss_vlan_ah_l2tp_pfcp(TestCase):
     def create_iavf(self):
         if self.vf_flag is False:
             self.dut.bind_interfaces_linux('ice')
-            self.dut.send_expect("ethtool --set-priv-flags %s vf-vlan-prune-disable on" % self.pf_interface, "# ")
+            # get priv-flags default stats
+            self.flag = 'vf-vlan-pruning'
+            self.default_stats = self.dut.get_priv_flags_state(self.pf_interface, self.flag)
+            if self.default_stats:
+                self.dut.send_expect("ethtool --set-priv-flags %s %s off" % (self.pf_interface, self.flag), "# ")
             self.dut.generate_sriov_vfs_by_port(self.used_dut_port, 1)
             self.sriov_vfs_port = self.dut.ports_info[self.used_dut_port]['vfs_port']
             self.vf_flag = True
@@ -893,7 +897,8 @@ class Cvl_advance_iavf_rss_vlan_ah_l2tp_pfcp(TestCase):
         """
         self.dut.kill_all()
         self.destroy_iavf()
-        self.dut.send_expect("ethtool --set-priv-flags %s vf-vlan-prune-disable off" % self.pf_interface, "# ")
+        if self.default_stats:
+            self.dut.send_expect("ethtool --set-priv-flags %s %s %s" % (self.pf_interface, self.flag, self.default_stats), "# ")
 
     def launch_testpmd(self, symmetric=False):
         param = "--rxq=16 --txq=16"
-- 
2.17.1


  parent reply	other threads:[~2021-11-02  8:12 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-11-02  8:11 [dts] [PATCH V2 01/10] tests/cvl_dcf_flow_priority: " Jiale Song
2021-11-02  8:11 ` [dts] [PATCH V2 02/10] tests/cvl_qinq: " Jiale Song
2021-11-02  8:11 ` Jiale Song [this message]
2021-11-02  8:11 ` [dts] [PATCH V2 04/10] tests/cvl_dcf_switch_filter: " Jiale Song
2021-11-02  8:11 ` [dts] [PATCH V2 05/10] tests/cvl_dcf_switch_filter_pppoe: " Jiale Song
2021-11-02  8:11 ` [dts] [PATCH V2 06/10] tests/cvl_vf_support_multicast_address: " Jiale Song
2021-11-02  8:11 ` [dts] [PATCH V2 07/10] tests/l2tp_esp_coverage: " Jiale Song
2021-11-02  8:11 ` [dts] [PATCH V2 08/10] tests/kernelpf_iavf: " Jiale Song
2021-11-02  8:11 ` [dts] [PATCH V2 09/10] tests/iavf_flexible_descriptor: " Jiale Song
2021-11-02  8:12 ` [dts] [PATCH V2 10/10] tests/vf_vlan: " Jiale Song
2021-11-05 11:51   ` Tu, Lijuan

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=1635840720-90878-3-git-send-email-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).