[V1,1/2] tests/vf_pf_reset: modify case to support ice nic

Message ID 20220801154053.3266288-1-songx.jiale@intel.com (mailing list archive)
State Accepted
Headers
Series [V1,1/2] tests/vf_pf_reset: modify case to support ice nic |

Commit Message

Jiale, SongX Aug. 1, 2022, 3:40 p.m. UTC
  ice nic support test_vlan_tx_restore, need turn off spoofchk.

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

Patch

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/tests/TestSuite_vf_pf_reset.py b/tests/TestSuite_vf_pf_reset.py
index 424ce56c..6a9b5969 100644
--- a/tests/TestSuite_vf_pf_reset.py
+++ b/tests/TestSuite_vf_pf_reset.py
@@ -201,7 +201,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 +947,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,