From patchwork Tue Aug 30 02:47:39 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Weiyuan Li X-Patchwork-Id: 115638 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 9576EA04FD; Tue, 30 Aug 2022 04:47:49 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 90A7942826; Tue, 30 Aug 2022 04:47:49 +0200 (CEST) Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by mails.dpdk.org (Postfix) with ESMTP id 42D6A40F17 for ; Tue, 30 Aug 2022 04:47:48 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1661827668; x=1693363668; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=17WIBxP7Z+EwsDaCcF8AoRIP+HCuIIafPtWREmP/jcE=; b=NYXhCR+p5yubzFJWuaWMg0giZnKMhepBbwW/xvOM+yKqK3bREtGoBXH7 GzzygplZ/TbSFCY3BUHCvA4bdjmk8kngdw2FIPLO4KG5+2AWui2sVMvj/ 7CjnramznkvbvFCPyf9MkFw8gDslwDwneD1UrvAU1QRYmuP+5HJamHIZ/ VGDSaqDWY3ZTTkvbBqH29FKHZUrxKHZCuXVt3YgUDEqBhzWPBJ9Hw3zd2 Te3zBC9NLjd7fnp2X5suqP9+fM82Jj+IEWSSq/bhnuca8Vbjvf3QiADkG VBRJ5HXQezsVaenaAOhRGCTjZhUYmTOTGoFjaRTTs57/hKbeSwFvAxkp3 Q==; X-IronPort-AV: E=McAfee;i="6500,9779,10454"; a="359024470" X-IronPort-AV: E=Sophos;i="5.93,274,1654585200"; d="scan'208";a="359024470" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Aug 2022 19:47:44 -0700 X-IronPort-AV: E=Sophos;i="5.93,274,1654585200"; d="scan'208";a="641181946" Received: from unknown (HELO localhost.localdomain) ([10.239.252.248]) by orsmga008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Aug 2022 19:47:42 -0700 From: Weiyuan Li To: dts@dpdk.org Cc: Weiyuan Li , Jiale Song Subject: [dts][PATCH V3 09/10] test_plans/ice_iavf_fdir: update dts code for dpdk csum change Date: Tue, 30 Aug 2022 10:47:39 +0800 Message-Id: <20220830024740.26250-9-weiyuanx.li@intel.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20220830024740.26250-1-weiyuanx.li@intel.com> References: <20220830024740.26250-1-weiyuanx.li@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 According to dpdk commit 9b4ea7ae77fa(app/testpmd: revert MAC update in checksum forwarding) modify the script adapt to this chagne. 1. Modify VF case to enable promisc. 2. Modify PF case to send packet dst mac is random. Signed-off-by: Weiyuan Li Signed-off-by: Weiyuan Li Tested-by: Jiale Song < songx.jiale@intel.com> --- Tested-by: Jiale Song < songx.jiale@intel.com> v2: -Enable promisc mode in testpmd v3: -Test plan csum add enable promisc mode test_plans/ice_iavf_fdir_test_plan.rst | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/test_plans/ice_iavf_fdir_test_plan.rst b/test_plans/ice_iavf_fdir_test_plan.rst index b485f899..9f6b5aaf 100644 --- a/test_plans/ice_iavf_fdir_test_plan.rst +++ b/test_plans/ice_iavf_fdir_test_plan.rst @@ -195,6 +195,12 @@ Prerequisites ip link set enp134s0f1 vf 0 mac 00:11:22:33:44:77 ip link set enp134s0f1 vf 1 mac 00:11:22:33:44:88 + If test set HW checksum and SW checksum: + ip link set enp24s0f0 vf 0 trust on + ip link set enp24s0f0 vf 0 spoofchk off + ip link set enp24s0f0 vf 1 trust on + ip link set enp24s0f0 vf 1 spoofchk off + 0000:86:00.0 generate 0000:86:01.0 and 0000:86:01.1 0000:86:00.1 generate 0000:86:11.0 and 0000:86:11.1 define 86:01.0 as vf00, 86:01.1 as vf01, 86:11.0 as vf10, 86:11.1 as vf11. @@ -5058,6 +5064,7 @@ Subcase 1: PFCP FDIR vlan strip on HW checksum offload check testpmd> csum set ip hw 0 testpmd> csum set udp hw 0 testpmd> port start all + testpmd> set promisc 0 on testpmd> set verbose 1 testpmd> start @@ -5129,6 +5136,7 @@ subcase 2: PFCP FDIR vlan strip off SW checksum offload check testpmd> csum set udp sw 0 testpmd> port start all testpmd> set verbose 1 + testpmd> set promisc 0 on testpmd> start 4. DUT create fdir rules for MAC_IPV4_PFCP_NODE/MAC_IPV4_PFCP_SESSION/MAC_IPV6_PFCP_NODE/MAC_IPV6_PFCP_SESSION with queue index and mark::