From patchwork Mon Aug 1 15:40:52 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Jiale, SongX" X-Patchwork-Id: 114477 Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id CB181A00C3; Mon, 1 Aug 2022 09:40:49 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id C4CD941101; Mon, 1 Aug 2022 09:40:49 +0200 (CEST) Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by mails.dpdk.org (Postfix) with ESMTP id 4DAB84067B for ; Mon, 1 Aug 2022 09:40:47 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1659339647; x=1690875647; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=3CLU1iiuD9Wv34K9lIheyY1+lw2xaA6Mn02LdtorUSU=; b=WkvLDfSmTqyb0hMlRcN+3pVNmZ3FptHDCgFH+cC37idJiMedCMtAtbn4 XMICJwXVpfDAHSoZJrG4c4OrTPA5wBtF1+NkhQS/v1P5WsdGPylhYgx2N vTOSt0YDq3Zugna+p2KD9Crm6o7bWo2g2Mf/7PDS254FDvmLHZwZtUYFs c72rTFIm7gH04934MwtcSgDUT0e6iZYvj+SHspqsfHouf/hR4QtGTgI4p mUIu0Ys/vkovpOF6x6vILW7YvyEduHU3TnHYjerNOmeVDNlpdFi7zmyXo rCa+C/JOSOWYbqQ8lCvv04olC4awbuypmjPKH/QXezdJ0LZvTW5VyzQkk A==; X-IronPort-AV: E=McAfee;i="6400,9594,10425"; a="353090397" X-IronPort-AV: E=Sophos;i="5.93,206,1654585200"; d="scan'208";a="353090397" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Aug 2022 00:40:30 -0700 X-IronPort-AV: E=Sophos;i="5.93,206,1654585200"; d="scan'208";a="630136381" Received: from unknown (HELO localhost.localdomain) ([10.239.252.20]) by orsmga008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Aug 2022 00:40:29 -0700 From: Jiale Song To: dts@dpdk.org Cc: Jiale Song Subject: [dts] [PATCH V1 1/2] tests/vf_pf_reset: modify case to support ice nic Date: Mon, 1 Aug 2022 15:40:52 +0000 Message-Id: <20220801154053.3266288-1-songx.jiale@intel.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 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 ice nic support test_vlan_tx_restore, need turn off spoofchk. Signed-off-by: Jiale Song --- conf/test_case_checklist.json | 3 +-- tests/TestSuite_vf_pf_reset.py | 8 +++++++- 2 files changed, 8 insertions(+), 3 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/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, From patchwork Mon Aug 1 15:40:53 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Jiale, SongX" X-Patchwork-Id: 114478 Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 3EB9BA034C; Mon, 1 Aug 2022 09:40:50 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id E484442C7C; Mon, 1 Aug 2022 09:40:49 +0200 (CEST) Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by mails.dpdk.org (Postfix) with ESMTP id EF70F4067B for ; Mon, 1 Aug 2022 09:40:47 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1659339648; x=1690875648; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=FiyzL8YKxhndvxTpzn8Xf/knncgDFGLn30ZLTXeBHpA=; b=k47e8v3B5Nsq+x/8AsjxThefPKDA62NIqibtA0unyu5ZqV9HoKaXC/yX X5LRI6bfet07Z3qjwqCUp63EPwbdvrLsUKMAOp19LZMG7nyUp6u9Ws6NM FU7Yl5DtuGNneVsQeCMfKsS5wsQV5g5HEsSDh3L9U0iGlutMNdUjj8pfQ H8FkKQbgrSjLCB7da4FVGXUWr+OIvFzQGos31f40OlbjT+rilntLck5Nt lD3jsk1M3F46cnjy0TAXDNXFf3yNAUk2HGth9t5jBpqTw5+isolX4qdLy xOCb2M1DBu95NXU5WjiaGGGLlNNfSNMr7ORYvtz3OOsrzfxE0J2oixnN8 g==; X-IronPort-AV: E=McAfee;i="6400,9594,10425"; a="353090402" X-IronPort-AV: E=Sophos;i="5.93,206,1654585200"; d="scan'208";a="353090402" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Aug 2022 00:40:32 -0700 X-IronPort-AV: E=Sophos;i="5.93,206,1654585200"; d="scan'208";a="630136398" Received: from unknown (HELO localhost.localdomain) ([10.239.252.20]) by orsmga008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Aug 2022 00:40:31 -0700 From: Jiale Song To: dts@dpdk.org Cc: Jiale Song Subject: [dts] [PATCH V1 2/2] test_plans/vf_pf_reset: modify case to support ice nic Date: Mon, 1 Aug 2022 15:40:53 +0000 Message-Id: <20220801154053.3266288-2-songx.jiale@intel.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220801154053.3266288-1-songx.jiale@intel.com> References: <20220801154053.3266288-1-songx.jiale@intel.com> MIME-Version: 1.0 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 ice nic support test_vlan_tx_restore, need turn off spoofchk. Signed-off-by: Jiale Song Acked-by: Lijuan Tu --- test_plans/vf_pf_reset_test_plan.rst | 4 ++++ 1 file changed, 4 insertions(+) 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::