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_pf_reset: modify case to support ice nic and disable ipv6
Date: Thu, 14 Jul 2022 18:04:10 +0000	[thread overview]
Message-ID: <20220714180410.12240-1-songx.jiale@intel.com> (raw)

1. ice nic support test_vlan_tx_restore, modify script to support it.
2. disable IPv6 to reduce the impact of IPv6 miscellaneous packets on case.

Signed-off-by: Jiale Song <songx.jiale@intel.com>
---
 conf/test_case_checklist.json        |  3 +--
 test_plans/vf_pf_reset_test_plan.rst |  4 ++++
 tests/TestSuite_vf_pf_reset.py       | 13 +++++++++++--
 3 files changed, 16 insertions(+), 4 deletions(-)

diff --git a/conf/test_case_checklist.json b/conf/test_case_checklist.json
index 5d166cb2..f4e53236 100644
--- a/conf/test_case_checklist.json
+++ b/conf/test_case_checklist.json
@@ -3768,8 +3768,7 @@
                 "ALL"
             ],
             "NIC": [
-                "ICE_25G-E810C_SFP",
-		        "ICE_100G-E810C_QSFP"
+                ""
             ],
             "Target": [
                 "ALL"
diff --git a/test_plans/vf_pf_reset_test_plan.rst b/test_plans/vf_pf_reset_test_plan.rst
index 31ca7238..35fdc149 100644
--- a/test_plans/vf_pf_reset_test_plan.rst
+++ b/test_plans/vf_pf_reset_test_plan.rst
@@ -396,6 +396,10 @@ Test Case 6: vlan rx restore -- create one vf on each pf
 Test Case 7: vlan tx restore
 ============================
 
+.. note::
+
+   ice nic need set dut tx vf port spoofchk off: ip link set dev {pf_interface} vf {tx_vf} spoofchk off
+
 1. Execute the step1-step3 of test case 1
 
 2. Run testpmd::
diff --git a/tests/TestSuite_vf_pf_reset.py b/tests/TestSuite_vf_pf_reset.py
index 424ce56c..a34ef97b 100644
--- a/tests/TestSuite_vf_pf_reset.py
+++ b/tests/TestSuite_vf_pf_reset.py
@@ -77,6 +77,8 @@ class TestVfPfReset(TestCase):
         # Init pmd second
         session_second = self.dut.new_session()
         self.pmd_output_2 = PmdOutput(self.dut, session_second)
+        # disable ipv6
+        self.dut.disable_ipv6(intf=all)
 
     def set_up(self):
         """
@@ -201,7 +203,8 @@ class TestVfPfReset(TestCase):
         tx_port="",
         vm=False,
     ):
-        inst = self.tester.tcpdump_sniff_packets(tester_intf)
+        filter = [{"layer": "ether", "config": {"dst": "not ff:ff:ff:ff:ff:ff"}}]
+        inst = self.tester.tcpdump_sniff_packets(tester_intf, filters=filter)
         if vlan:
             out = self.send_packet(
                 vf_mac, num=count, vlan_id=vlan, tx_port=tx_port, vm=vm
@@ -946,6 +949,11 @@ class TestVfPfReset(TestCase):
         """
         vlan tx restore
         """
+        # ice nic need set tx vf spoofchk off
+        if self.kdriver == "ice":
+            self.dut.send_expect(
+                "ip link set dev {} vf 1 spoofchk off".format(self.host_intf_0), "# "
+            )
         # Set mac
         self.ip_link_set(
             host_intf=self.host_intf_0,
@@ -1321,4 +1329,5 @@ class TestVfPfReset(TestCase):
         When the case of this test suite finished, the environment should
         clear up.
         """
-        pass
+        # enable ipv6
+        self.dut.enable_ipv6(intf=all)
-- 
2.17.1


                 reply	other threads:[~2022-07-14  9:42 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=20220714180410.12240-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).