From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id D0FEEA00C5; Thu, 14 Jul 2022 11:42:30 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id AF00942B73; Thu, 14 Jul 2022 11:42:30 +0200 (CEST) Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by mails.dpdk.org (Postfix) with ESMTP id 364F942B6D for ; Thu, 14 Jul 2022 11:42:29 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1657791749; x=1689327749; h=from:to:cc:subject:date:message-id; bh=Wy7y9c3vEF4Hbtz+lOhI+WmfIKybS0oSfRDXhsEM/kY=; b=Y5mFxqEOuqEUnNkNF6c3O0nhaz0q1j4UkZItgKYDUE2USwsFfVRcsrXC +axaNJfOdXd5d6pJPuLlY3vhfz8l7AdVqOLYIPxO77wwm7vyyrjwrtzqF Kcq0IlSw2Qsayu9gri7Q4ThDifSk3YeYrEt22zvi2fckFovZ/BxZ3RY/Q ca0VlyTfL/Sm4IyK8YYkpa7lYKeudzy11GD0y74GQ7LDQxEzxDHo22m4o O4mjxqKcZMPWsn0dTPXL9dH65IyCdtp7LN9JyuXwdHlKczKdLFB1HQSoD REsCaM1NOXmEyUoPYvnjJkx1lWaDQ94rynJJdM376FYfeFBUeunk7djRK w==; X-IronPort-AV: E=McAfee;i="6400,9594,10407"; a="286606125" X-IronPort-AV: E=Sophos;i="5.92,269,1650956400"; d="scan'208";a="286606125" Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 Jul 2022 02:42:28 -0700 X-IronPort-AV: E=Sophos;i="5.92,269,1650956400"; d="scan'208";a="923007719" Received: from unknown (HELO localhost.localdomain) ([10.239.252.94]) by fmsmga005-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 Jul 2022 02:42:26 -0700 From: Jiale Song To: dts@dpdk.org Cc: Jiale Song 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 Message-Id: <20220714180410.12240-1-songx.jiale@intel.com> X-Mailer: git-send-email 2.17.1 X-BeenThere: dts@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: test suite reviews and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dts-bounces@dpdk.org 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 --- 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