From patchwork Fri Nov 25 09:16:26 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Weiyuan Li X-Patchwork-Id: 120147 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 8E492A0032; Fri, 25 Nov 2022 10:16:44 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 5750240156; Fri, 25 Nov 2022 10:16:44 +0100 (CET) Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by mails.dpdk.org (Postfix) with ESMTP id DE9A740150 for ; Fri, 25 Nov 2022 10:16:42 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1669367803; x=1700903803; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=hoe1w1lmBQ6OnUF1E5Qpcx5uJJ6p3p/+WgPvMMCTV90=; b=nrf0n6JaLHtGFxcWFkJX5eCYMkHOKOstcRPtarzIkYjidI0pLnIr0HZq luEIiDV6r2nnd0NfW56Wb4qTN3ycLZVdvwaSPpLiiHd8RZZr7dLAc/yTA knvFHRgM5y2o4WV7s04jRbeNeUHYOSTLb/PB1pPTg6K2pd5UDQqTLQZHB kTXlG2nrsYUY315YUEAul2BQNPEXxOq0T4IHTQJraA3nwbsQeOzoXsCuh WzQboi4b2n7z8xbqNj+QOJxF/XZK4vtIv+DRKYlFPYHI7LEQkgO7zY9rF Q5SNZ/G9zZHFlgSz83AnlbIpWAS8+Q3+AACtvYPuJS5jGomdT7dXbOg5A A==; X-IronPort-AV: E=McAfee;i="6500,9779,10541"; a="294148461" X-IronPort-AV: E=Sophos;i="5.96,193,1665471600"; d="scan'208";a="294148461" Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Nov 2022 01:16:41 -0800 X-IronPort-AV: E=McAfee;i="6500,9779,10541"; a="971513279" X-IronPort-AV: E=Sophos;i="5.96,193,1665471600"; d="scan'208";a="971513279" Received: from unknown (HELO localhost.localdomain) ([10.239.252.248]) by fmsmga005-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Nov 2022 01:16:40 -0800 From: Weiyuan Li To: dts@dpdk.org, yuan.peng@intel.com Cc: Weiyuan Li Subject: [dts][PATCH V1 01/12] test_plans/vf_offload: dts adaptation DPDk checksum function changes Date: Fri, 25 Nov 2022 17:16:26 +0800 Message-Id: <20221125091637.1811-1-weiyuanx.li@intel.com> X-Mailer: git-send-email 2.27.0 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 DPDK22.11 236bc417e2da(app/testpmd: fix MAC header in checksum forward engine) changes the checksum functions adds switches to control whether to exchange MAC address. Modify DTS code to adapt to this change. Signed-off-by: Weiyuan Li --- test_plans/vf_offload_test_plan.rst | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/test_plans/vf_offload_test_plan.rst b/test_plans/vf_offload_test_plan.rst index c5e720f2..c3b189c0 100644 --- a/test_plans/vf_offload_test_plan.rst +++ b/test_plans/vf_offload_test_plan.rst @@ -92,7 +92,13 @@ Enable the IPv4/UDP/TCP/SCTP HW checksum offload on port 0:: testpmd> csum set udp hw 0 testpmd> csum set sctp hw 0 testpmd> port start all - testpmd> set promisc 0 on + testpmd> set promisc 0 + + Due to DPDK 236bc417e2da(app/testpmd: fix MAC header in checksum forward engine) changes the checksum + functions adds switches to control whether to exchange MAC address. + Currently, our test scripts are based on not exchanging MAC addresses, mac-swap needs to be disabled: + testpmd> csum mac-swap off 0 + testpmd> start csum packet forwarding - CRC stripping disabled - packets/burst=32 nb forwarding cores=1 - nb forwarding ports=10 @@ -133,6 +139,12 @@ Enable the IPv4/UDP/TCP/SCTP SW checksum offload on port 0:: testpmd> csum set sctp sw 0 testpmd> port start all testpmd> set promisc 0 on + + Due to DPDK 236bc417e2da(app/testpmd: fix MAC header in checksum forward engine) changes the checksum + functions adds switches to control whether to exchange MAC address. + Currently, our test scripts are based on not exchanging MAC addresses, mac-swap needs to be disabled: + testpmd> csum mac-swap off 0 + testpmd> start csum packet forwarding - CRC stripping disabled - packets/burst=32 nb forwarding cores=1 - nb forwarding ports=10 @@ -217,6 +229,12 @@ Launch the userland ``testpmd`` application on DUT as follows:: # Set fwd engine and start testpmd> set fwd csum + + Due to DPDK 236bc417e2da(app/testpmd: fix MAC header in checksum forward engine) changes the checksum + functions adds switches to control whether to exchange MAC address. + Currently, our test scripts are based on not exchanging MAC addresses, mac-swap needs to be disabled: + testpmd> csum mac-swap off 0 + testpmd> start Test IPv4() in scapy:: From patchwork Fri Nov 25 09:16:27 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Weiyuan Li X-Patchwork-Id: 120146 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 E43E1A0093; Fri, 25 Nov 2022 10:16:44 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 7D0DC410EA; Fri, 25 Nov 2022 10:16:44 +0100 (CET) Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by mails.dpdk.org (Postfix) with ESMTP id C79DF40150 for ; Fri, 25 Nov 2022 10:16:43 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1669367803; x=1700903803; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=s7MNTNkLIqXDhXboQ08rvRH4ITZDr1IKrdibWH2RkKU=; b=nAL506ofhVz0LOcIAHh+BR5c0SPyaYnyNlzA3yjEidUkJECUyxvXXK3E xoqE2RDPEqXItedzl6NwVSmR7P/dL8qegHJ1STcToO62TaoqH9Ncj/Xdd 4crLDj5yW8Z7HQB9FPa27JP/yi3jPObSAcDAQH/KEcFrXAbeNY2dAAaDo dmupA/bZipJgvUfQvykJ7ikjvOcaeC+8E34e5EH9VFyvcLjqG/oBPsdLe ZHGet3u0puBYkaNKmT0fgy1FIuhwfbUmJoGYEtHzX2D2xYyu4udxe4i1R B9uycPGAB+AEphZYN6b0m1nvqxwa0LLmL5lHV3XZVxdUmpmdNXzy0ydbm w==; X-IronPort-AV: E=McAfee;i="6500,9779,10541"; a="294148466" X-IronPort-AV: E=Sophos;i="5.96,193,1665471600"; d="scan'208";a="294148466" Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Nov 2022 01:16:43 -0800 X-IronPort-AV: E=McAfee;i="6500,9779,10541"; a="971513286" X-IronPort-AV: E=Sophos;i="5.96,193,1665471600"; d="scan'208";a="971513286" Received: from unknown (HELO localhost.localdomain) ([10.239.252.248]) by fmsmga005-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Nov 2022 01:16:42 -0800 From: Weiyuan Li To: dts@dpdk.org, yuan.peng@intel.com Cc: Weiyuan Li Subject: [dts][PATCH V1 02/12] tests/vf_offload: dts adaptation DPDk checksum function changes Date: Fri, 25 Nov 2022 17:16:27 +0800 Message-Id: <20221125091637.1811-2-weiyuanx.li@intel.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20221125091637.1811-1-weiyuanx.li@intel.com> References: <20221125091637.1811-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 DPDK22.11 236bc417e2da(app/testpmd: fix MAC header in checksum forward engine) changes the checksum functions adds switches to control whether to exchange MAC address. Modify DTS code to adapt to this change. Signed-off-by: Weiyuan Li --- tests/TestSuite_vf_offload.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/TestSuite_vf_offload.py b/tests/TestSuite_vf_offload.py index 75c75f05..26fad2b8 100644 --- a/tests/TestSuite_vf_offload.py +++ b/tests/TestSuite_vf_offload.py @@ -314,6 +314,8 @@ class TestVfOffload(TestCase): param="--portmask=%s " % (self.portMask) + "--enable-rx-cksum " + "", ) self.vm0_testpmd.execute_cmd("set fwd csum") + self.vm0_testpmd.execute_cmd("csum mac-swap off 0", "testpmd>") + self.vm0_testpmd.execute_cmd("csum mac-swap off 1", "testpmd>") self.vm0_testpmd.execute_cmd("set promisc 1 on") self.vm0_testpmd.execute_cmd("set promisc 0 on") @@ -376,6 +378,8 @@ class TestVfOffload(TestCase): param="--portmask=%s " % (self.portMask) + "--enable-rx-cksum " + "", ) self.vm0_testpmd.execute_cmd("set fwd csum") + self.vm0_testpmd.execute_cmd("csum mac-swap off 0", "testpmd>") + self.vm0_testpmd.execute_cmd("csum mac-swap off 1", "testpmd>") self.vm0_testpmd.execute_cmd("set promisc 1 on") self.vm0_testpmd.execute_cmd("set promisc 0 on") From patchwork Fri Nov 25 09:16:28 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Weiyuan Li X-Patchwork-Id: 120148 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 A0610A0032; Fri, 25 Nov 2022 10:16:46 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 9D43140A8A; Fri, 25 Nov 2022 10:16:46 +0100 (CET) Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by mails.dpdk.org (Postfix) with ESMTP id 4F92440150 for ; Fri, 25 Nov 2022 10:16:45 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1669367805; x=1700903805; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=o5h9VlF4wwx1pTUlF7hdjMLuKBSvcSu7g/fwIyp0W8U=; b=gDpK4kgbQh3TkllAJrfz+/RU/1FH/pFf2fvyTLXMO1qp0NKJGi65s8fY H2MU1Ocs/GRNtK4oofdQ52o1U3Hu+P0VrpKagDbzdtqkrV5iqzHQAFuzn xIuzkOfW+NVHOcLtfo2+xKeD2oevQ0Z6+u2UmV8pYs/EwFCwPIZBggT0+ jiPNnH+6ls5MQ21IparcJeEkrF1MstlAMcQ///FpuHL/2ivx95wd7twhp ox9wfXLKKPHUpuNxC/t7YYGoeS+ThQ63VjrBfYn3W8w6OKHZWzy6TPxe8 0UF/w2zWQOsqc/IgWqI1lwBQ/MbvgHjOxYe7HG1KnVXS4aRGopsGTEwRJ w==; X-IronPort-AV: E=McAfee;i="6500,9779,10541"; a="294148469" X-IronPort-AV: E=Sophos;i="5.96,193,1665471600"; d="scan'208";a="294148469" Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Nov 2022 01:16:44 -0800 X-IronPort-AV: E=McAfee;i="6500,9779,10541"; a="971513290" X-IronPort-AV: E=Sophos;i="5.96,193,1665471600"; d="scan'208";a="971513290" Received: from unknown (HELO localhost.localdomain) ([10.239.252.248]) by fmsmga005-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Nov 2022 01:16:43 -0800 From: Weiyuan Li To: dts@dpdk.org, yuan.peng@intel.com Cc: Weiyuan Li Subject: [dts][PATCH V1 03/12] test_plans/checksum_offload: dts adaptation DPDk checksum function changes Date: Fri, 25 Nov 2022 17:16:28 +0800 Message-Id: <20221125091637.1811-3-weiyuanx.li@intel.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20221125091637.1811-1-weiyuanx.li@intel.com> References: <20221125091637.1811-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 DPDK22.11 236bc417e2da(app/testpmd: fix MAC header in checksum forward engine) changes the checksum functions adds switches to control whether to exchange MAC address. Modify DTS code to adapt to this change. Signed-off-by: Weiyuan Li --- test_plans/checksum_offload_test_plan.rst | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/test_plans/checksum_offload_test_plan.rst b/test_plans/checksum_offload_test_plan.rst index 00db1a74..b7e1694c 100644 --- a/test_plans/checksum_offload_test_plan.rst +++ b/test_plans/checksum_offload_test_plan.rst @@ -59,6 +59,11 @@ Set the verbose level to 1 to display information for each received packet:: testpmd> set verbose 1 +Due to DPDK 236bc417e2da(app/testpmd: fix MAC header in checksum forward engine) changes the checksum +functions adds switches to control whether to exchange MAC address. +Currently, our test scripts are based on not exchanging MAC addresses, mac-swap needs to be disabled: + + testpmd> csum mac-swap off 0 Test Case: Insert IPv4/IPv6 UDP/TCP/SCTP checksum on the transmit packet ======================================================================== @@ -1000,4 +1005,4 @@ combination: IPv4/UDP, IPv4/TCP, IPv6/UDP, IPv6/TCP:: Then verify that the same number of packet are correctly received on the tester. -Inspect the pcap file from the packet capture and verify the checksums. \ No newline at end of file +Inspect the pcap file from the packet capture and verify the checksums. From patchwork Fri Nov 25 09:16:29 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Weiyuan Li X-Patchwork-Id: 120150 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 C49E5A0032; Fri, 25 Nov 2022 10:16:49 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id C20BD40A82; Fri, 25 Nov 2022 10:16:49 +0100 (CET) Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by mails.dpdk.org (Postfix) with ESMTP id CA1FF4161A for ; Fri, 25 Nov 2022 10:16:46 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1669367806; x=1700903806; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=9uEQaVUhO0zIwqLF2+y1oXQbzbLQVP4Uqo5VN7jrye4=; b=K6vEwA3fguB2yWiKK6zGPEyG0ueO6UtEqUNx/4GGYG7xMHh7TsGENeq2 HYhI981FhsCRN7VaRMfF0o0pEMr8KnVIeBmSXSKjIpWnNm3BConYx2H3k UFhWgXf1fCNrDsXnpecTpoeJTCPQ9yotVdXsUbM9IMA/FdR+mbFvmGfsx MvOD5r2hdn+73bO7vM4A0nKY4Pykop5vt6liDLkSOgFuW7tvcDldJaBoV Pnre4e+WIWqKHSbmyi6HwvRh3elECNpct2FPLw2bfAW8uDfItv+ls9tzO dUjXBfBIj6wpIAXsqbruLGLPrdJLucmM+z45s/d+L87yoK7S2UKFEPHk/ Q==; X-IronPort-AV: E=McAfee;i="6500,9779,10541"; a="294148474" X-IronPort-AV: E=Sophos;i="5.96,193,1665471600"; d="scan'208";a="294148474" Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Nov 2022 01:16:46 -0800 X-IronPort-AV: E=McAfee;i="6500,9779,10541"; a="971513296" X-IronPort-AV: E=Sophos;i="5.96,193,1665471600"; d="scan'208";a="971513296" Received: from unknown (HELO localhost.localdomain) ([10.239.252.248]) by fmsmga005-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Nov 2022 01:16:45 -0800 From: Weiyuan Li To: dts@dpdk.org, yuan.peng@intel.com Cc: Weiyuan Li Subject: [dts][PATCH V1 04/12] tests/checksum_offload: dts adaptation DPDk checksum function changes Date: Fri, 25 Nov 2022 17:16:29 +0800 Message-Id: <20221125091637.1811-4-weiyuanx.li@intel.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20221125091637.1811-1-weiyuanx.li@intel.com> References: <20221125091637.1811-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 DPDK22.11 236bc417e2da(app/testpmd: fix MAC header in checksum forward engine) changes the checksum functions adds switches to control whether to exchange MAC address. Modify DTS code to adapt to this change. Signed-off-by: Weiyuan Li --- tests/TestSuite_checksum_offload.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/TestSuite_checksum_offload.py b/tests/TestSuite_checksum_offload.py index 6eed3f05..0214231c 100644 --- a/tests/TestSuite_checksum_offload.py +++ b/tests/TestSuite_checksum_offload.py @@ -90,6 +90,7 @@ class TestChecksumOffload(TestCase): ) self.dut.send_expect("set verbose 1", "testpmd>") self.dut.send_expect("set fwd csum", "testpmd>") + self.dut.send_expect("csum mac-swap off 0", "testpmd>") def checksum_enablehw(self, port): self.dut.send_expect("port stop all", "testpmd>") From patchwork Fri Nov 25 09:16:30 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Weiyuan Li X-Patchwork-Id: 120149 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 EDCFCA0093; Fri, 25 Nov 2022 10:16:49 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id E72E44282D; Fri, 25 Nov 2022 10:16:49 +0100 (CET) Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by mails.dpdk.org (Postfix) with ESMTP id 5182C40150 for ; Fri, 25 Nov 2022 10:16:48 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1669367808; x=1700903808; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=1wpvto0Z5YomJGGicWX72O7ykJX9gpM7qZshhbnlL44=; b=HZTRw88Ewve71C6A+HM0H7ScxghRtMPLaAL4cJjFCA+dRX9YMQJeXNYF Cb3Z033vuYt3dRzSVPUpfTHRsmvHUigWuZoMLKHrLvIUF0vSG1JzoNQcw U4AoEz50K99jJvqZqzRAyIRxQSCovqMwkcfHzPmoaVaeyKZooBgJRS/hY xU++7u9ZzTQ9m02YQmmrUH5dhCXyj69Qx0PxkkgbCN74NARI9kyY0Abk7 ZsWASJmh+SMDhaY+HnMNSLwUeDIOIE4/Cl3PP4LjgNVKW8DT4Zogqq9ie /7BB9umK29OpumaLUKZ7qJ2MjQKct7dLVuvYP4XGK+0SmEk14BjgWdyZ/ Q==; X-IronPort-AV: E=McAfee;i="6500,9779,10541"; a="294148480" X-IronPort-AV: E=Sophos;i="5.96,193,1665471600"; d="scan'208";a="294148480" Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Nov 2022 01:16:47 -0800 X-IronPort-AV: E=McAfee;i="6500,9779,10541"; a="971513315" X-IronPort-AV: E=Sophos;i="5.96,193,1665471600"; d="scan'208";a="971513315" Received: from unknown (HELO localhost.localdomain) ([10.239.252.248]) by fmsmga005-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Nov 2022 01:16:46 -0800 From: Weiyuan Li To: dts@dpdk.org, yuan.peng@intel.com Cc: Weiyuan Li Subject: [dts][PATCH V1 05/12] test_plans/ice_advanced_iavf_rss: dts adaptation DPDk checksum function changes Date: Fri, 25 Nov 2022 17:16:30 +0800 Message-Id: <20221125091637.1811-5-weiyuanx.li@intel.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20221125091637.1811-1-weiyuanx.li@intel.com> References: <20221125091637.1811-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 DPDK22.11 236bc417e2da(app/testpmd: fix MAC header in checksum forward engine) changes the checksum functions adds switches to control whether to exchange MAC address. Modify DTS code to adapt to this change. Signed-off-by: Weiyuan Li --- test_plans/ice_advanced_iavf_rss_test_plan.rst | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/test_plans/ice_advanced_iavf_rss_test_plan.rst b/test_plans/ice_advanced_iavf_rss_test_plan.rst index e5abe8be..2818c228 100644 --- a/test_plans/ice_advanced_iavf_rss_test_plan.rst +++ b/test_plans/ice_advanced_iavf_rss_test_plan.rst @@ -3367,6 +3367,11 @@ Test case: Set HW csum, flow rule does not impact RX checksum and TX checksum port start all set promisc 0 on set verbose 1 + + Due to DPDK 236bc417e2da(app/testpmd: fix MAC header in checksum forward engine) changes the checksum + functions adds switches to control whether to exchange MAC address. + Currently, our test scripts are based on not exchanging MAC addresses, mac-swap needs to be disabled: + testpmd> csum mac-swap off 0 start 3. Capture the tx packet at tester port and check checksum values same as expect pkts:: From patchwork Fri Nov 25 09:16:31 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Weiyuan Li X-Patchwork-Id: 120151 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 1A3D2A0093; Fri, 25 Nov 2022 10:16:51 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 172CD41611; Fri, 25 Nov 2022 10:16:51 +0100 (CET) Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by mails.dpdk.org (Postfix) with ESMTP id C9B6741611 for ; Fri, 25 Nov 2022 10:16:49 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1669367809; x=1700903809; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=8n/LL0NgeqdhSTY1XhZLBFICEC4WI1T8kK608M1K9yY=; b=ckpVBoK7z4CI4CW/KN/Chta1PiZ8MuzwSOTrdvXbVIY0WR2cqy92MsNd 52ROexMB1YPX/NqG4jhlaqllU0f02K3NhvAomT648oI8O2pw58k9cGNZx KfZTCKAFtwmGU0SukVhC17+x5RwlR3IwACbXjJsyt4rRx9AzXTwOV/nep 4tIqppH8IcOxGNYN1IpiuzyTRbWta2OA8FoasQX3VB7eELKDfoPV7B6G3 CMjsAZUAvALsbTX1egQN6eGaJZbkdSonE7m3RvNq9RUhhtPpgZJwPAHMO w3+by7HmHdB92FxXeTRtVsVBI2soahq/mPWbfi2AkwtKsjF+4XRI6kGGf g==; X-IronPort-AV: E=McAfee;i="6500,9779,10541"; a="294148485" X-IronPort-AV: E=Sophos;i="5.96,193,1665471600"; d="scan'208";a="294148485" Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Nov 2022 01:16:49 -0800 X-IronPort-AV: E=McAfee;i="6500,9779,10541"; a="971513332" X-IronPort-AV: E=Sophos;i="5.96,193,1665471600"; d="scan'208";a="971513332" Received: from unknown (HELO localhost.localdomain) ([10.239.252.248]) by fmsmga005-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Nov 2022 01:16:48 -0800 From: Weiyuan Li To: dts@dpdk.org, yuan.peng@intel.com Cc: Weiyuan Li Subject: [dts][PATCH V1 06/12] tests/ice_advanced_iavf_rss: dts adaptation DPDk checksum function changes Date: Fri, 25 Nov 2022 17:16:31 +0800 Message-Id: <20221125091637.1811-6-weiyuanx.li@intel.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20221125091637.1811-1-weiyuanx.li@intel.com> References: <20221125091637.1811-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 DPDK22.11 236bc417e2da(app/testpmd: fix MAC header in checksum forward engine) changes the checksum functions adds switches to control whether to exchange MAC address. Modify DTS code to adapt to this change. Signed-off-by: Weiyuan Li --- tests/TestSuite_ice_advanced_iavf_rss.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/TestSuite_ice_advanced_iavf_rss.py b/tests/TestSuite_ice_advanced_iavf_rss.py index 8e8d7319..ddbc8cd6 100644 --- a/tests/TestSuite_ice_advanced_iavf_rss.py +++ b/tests/TestSuite_ice_advanced_iavf_rss.py @@ -7052,6 +7052,7 @@ class AdvancedIavfRSSTest(TestCase): self.pmd_output.execute_cmd("csum set sctp hw 0") self.pmd_output.execute_cmd("port start all") self.pmd_output.execute_cmd("set promisc 0 on") + self.pmd_output.execute_cmd("csum mac-swap off 0", "testpmd>") self.pmd_output.execute_cmd("start") dst_mac = "00:11:22:33:44:56" pkt_list = { From patchwork Fri Nov 25 09:16:32 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Weiyuan Li X-Patchwork-Id: 120152 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 382ACA0032; Fri, 25 Nov 2022 10:16:53 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 3242742C76; Fri, 25 Nov 2022 10:16:53 +0100 (CET) Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by mails.dpdk.org (Postfix) with ESMTP id 52A354161A for ; Fri, 25 Nov 2022 10:16:51 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1669367811; x=1700903811; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=qF2JrQV1aqw2ru1+SjfvHJCTdiMPpNs5WocszBMcKKA=; b=LhwRN6BH3PpSWMpbXqVqasfHvIdS3UUsn46pFQaC7+iVVC4skQVF8UK/ kvvHYRoUgs3VYrOIBn6BArzI5PYlbFij+Pib0NgiQjEJB9XC7DbJLsMa6 eSb9f50XY0nlqqw3UiLgw8MscDmfFpgA2PeYf7W05FrwKjDtvhiECloV/ 0cyvVQZUBNjZQ4N/SqXVbV3bhTElo14atxhiGL+phKUIKwX1EfOYU36iv rTQkSl5jjAsScpIW/R2VJyfXEMi3qS7VKBpX8Y9r9RVdVj+H5ssvsaQHv vcOdQ25wRW0Zlnhe74SBAABB72k3f6muHF8ulQFawL7B8TSEBMtGtyhdu A==; X-IronPort-AV: E=McAfee;i="6500,9779,10541"; a="294148490" X-IronPort-AV: E=Sophos;i="5.96,193,1665471600"; d="scan'208";a="294148490" Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Nov 2022 01:16:51 -0800 X-IronPort-AV: E=McAfee;i="6500,9779,10541"; a="971513339" X-IronPort-AV: E=Sophos;i="5.96,193,1665471600"; d="scan'208";a="971513339" Received: from unknown (HELO localhost.localdomain) ([10.239.252.248]) by fmsmga005-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Nov 2022 01:16:49 -0800 From: Weiyuan Li To: dts@dpdk.org, yuan.peng@intel.com Cc: Weiyuan Li Subject: [dts][PATCH V1 07/12] test_plans/ice_advanced_rss: dts adaptation DPDk checksum function changes Date: Fri, 25 Nov 2022 17:16:32 +0800 Message-Id: <20221125091637.1811-7-weiyuanx.li@intel.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20221125091637.1811-1-weiyuanx.li@intel.com> References: <20221125091637.1811-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 DPDK22.11 236bc417e2da(app/testpmd: fix MAC header in checksum forward engine) changes the checksum functions adds switches to control whether to exchange MAC address. Modify DTS code to adapt to this change. Signed-off-by: Weiyuan Li --- test_plans/ice_advanced_rss_test_plan.rst | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/test_plans/ice_advanced_rss_test_plan.rst b/test_plans/ice_advanced_rss_test_plan.rst index d2e8a07a..755a1a37 100644 --- a/test_plans/ice_advanced_rss_test_plan.rst +++ b/test_plans/ice_advanced_rss_test_plan.rst @@ -2562,6 +2562,12 @@ Test case: Set HW csum, flow rule does not impact RX checksum and TX checksum csum set sctp hw 0 port start all set verbose 1 + + Due to DPDK 236bc417e2da(app/testpmd: fix MAC header in checksum forward engine) changes the checksum + functions adds switches to control whether to exchange MAC address. + Currently, our test scripts are based on not exchanging MAC addresses, mac-swap needs to be disabled: + testpmd> csum mac-swap off 0 + start 3. Capture the tx packet at tester port and check checksum values same as expect pkts:: From patchwork Fri Nov 25 09:16:33 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Weiyuan Li X-Patchwork-Id: 120153 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 662BBA0032; Fri, 25 Nov 2022 10:16:54 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 6348C42D14; Fri, 25 Nov 2022 10:16:54 +0100 (CET) Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by mails.dpdk.org (Postfix) with ESMTP id CE68240150 for ; Fri, 25 Nov 2022 10:16:52 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1669367813; x=1700903813; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=QMd7CvZpBRZepA1sTfW9OApcBEB+A6OGpKZ+OCbgot8=; b=Pw6/fcEA2IlcDki85L+bo2rU0IH6iiEMT6CaOHAx9bz9Ub2cC5Y2Ub7y cMtQmi2YLEpiUg4E854kIQQyng10/Sk/XH3rz36OKmlQ0T61coZwA2kBW CD616oiNMLzQZQAa6gynh66tAF+6KbpfU4sdM0NLAvNLauWWCd/fhDGjE O+xqmf0F/wKhZM1cfmw8g5BrlO4Fd6XnBO7PsXYf0a6+7kPyQy4dvRFx9 tyL1ZPXW+CUgqywmQvje+uFM7PH+KwhcQtKBPtZd8PS/OTdaey7JQdcc4 U6J6bPZXehkEq2sgF65+6e4fuKHEmQg48AcQYa5GsYzpDoVWXCmo+eRGP Q==; X-IronPort-AV: E=McAfee;i="6500,9779,10541"; a="294148492" X-IronPort-AV: E=Sophos;i="5.96,193,1665471600"; d="scan'208";a="294148492" Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Nov 2022 01:16:52 -0800 X-IronPort-AV: E=McAfee;i="6500,9779,10541"; a="971513343" X-IronPort-AV: E=Sophos;i="5.96,193,1665471600"; d="scan'208";a="971513343" Received: from unknown (HELO localhost.localdomain) ([10.239.252.248]) by fmsmga005-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Nov 2022 01:16:51 -0800 From: Weiyuan Li To: dts@dpdk.org, yuan.peng@intel.com Cc: Weiyuan Li Subject: [dts][PATCH V1 08/12] tests/ice_advanced_rss: dts adaptation DPDk checksum function changes Date: Fri, 25 Nov 2022 17:16:33 +0800 Message-Id: <20221125091637.1811-8-weiyuanx.li@intel.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20221125091637.1811-1-weiyuanx.li@intel.com> References: <20221125091637.1811-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 DPDK22.11 236bc417e2da(app/testpmd: fix MAC header in checksum forward engine) changes the checksum functions adds switches to control whether to exchange MAC address. Modify DTS code to adapt to this change. Signed-off-by: Weiyuan Li --- tests/TestSuite_ice_advanced_rss.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/TestSuite_ice_advanced_rss.py b/tests/TestSuite_ice_advanced_rss.py index e18e42f6..f01a11fb 100644 --- a/tests/TestSuite_ice_advanced_rss.py +++ b/tests/TestSuite_ice_advanced_rss.py @@ -6367,6 +6367,7 @@ class AdvancedRSSTest(TestCase): self.pmd_output.execute_cmd("csum set udp hw 0") self.pmd_output.execute_cmd("csum set tcp hw 0") self.pmd_output.execute_cmd("csum set sctp hw 0") + self.pmd_output.execute_cmd("csum mac-swap off 0", "testpmd>") self.pmd_output.execute_cmd("port start all") self.pmd_output.execute_cmd("start") dst_mac = "00:11:22:33:44:56" From patchwork Fri Nov 25 09:16:34 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Weiyuan Li X-Patchwork-Id: 120154 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 881CAA0032; Fri, 25 Nov 2022 10:16:56 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 84A09410EF; Fri, 25 Nov 2022 10:16:56 +0100 (CET) Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by mails.dpdk.org (Postfix) with ESMTP id 57BEB4161A for ; Fri, 25 Nov 2022 10:16:54 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1669367814; x=1700903814; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=efzKiwzJY3q5LV4SWb3MsG6SktqreaauKd5wTuxj6ug=; b=NRneSi04LOmc3GNOpFyZiSGRe2dHEh5C2+nxmwKcT8pJgbttfSfgEVGW dA72m2mySj1Nf3ESj8ImtWNM3ien0n0CIWq9GcwF12m4hXL8mZPYXH1ID QB+N0YVa4mpH8SVv99V2JCF7DFAmz1msoerKr6EseGLuZmt4bhiEAVG4+ 5RC4sxcl+D53szcUEzrYQKUNaI7ErcyhQMPWR+b8hhA36bqhVnDurYnuQ NVAwIJJ7KHVo8o2vC1dfSHQuO7w3upbXChkEuYmmf2nedXa2f9L3U697q iejvOXJKcDnDeeHR6skBORkEEFIXl1RyVaj9LrPu/vkT9hLSQUzQbOgJL w==; X-IronPort-AV: E=McAfee;i="6500,9779,10541"; a="294148498" X-IronPort-AV: E=Sophos;i="5.96,193,1665471600"; d="scan'208";a="294148498" Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Nov 2022 01:16:54 -0800 X-IronPort-AV: E=McAfee;i="6500,9779,10541"; a="971513348" X-IronPort-AV: E=Sophos;i="5.96,193,1665471600"; d="scan'208";a="971513348" Received: from unknown (HELO localhost.localdomain) ([10.239.252.248]) by fmsmga005-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Nov 2022 01:16:52 -0800 From: Weiyuan Li To: dts@dpdk.org, yuan.peng@intel.com Cc: Weiyuan Li Subject: [dts][PATCH V1 09/12] test_plans/ice_iavf_fdir: dts adaptation DPDk checksum function changes Date: Fri, 25 Nov 2022 17:16:34 +0800 Message-Id: <20221125091637.1811-9-weiyuanx.li@intel.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20221125091637.1811-1-weiyuanx.li@intel.com> References: <20221125091637.1811-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 DPDK22.11 236bc417e2da(app/testpmd: fix MAC header in checksum forward engine) changes the checksum functions adds switches to control whether to exchange MAC address. Modify DTS code to adapt to this change. Signed-off-by: Weiyuan Li --- test_plans/ice_iavf_fdir_test_plan.rst | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/test_plans/ice_iavf_fdir_test_plan.rst b/test_plans/ice_iavf_fdir_test_plan.rst index 54779ad2..2b73037f 100644 --- a/test_plans/ice_iavf_fdir_test_plan.rst +++ b/test_plans/ice_iavf_fdir_test_plan.rst @@ -5103,6 +5103,12 @@ Subcase 1: PFCP FDIR vlan strip on HW checksum offload check testpmd> port start all testpmd> set promisc 0 on testpmd> set verbose 1 + + Due to DPDK 236bc417e2da(app/testpmd: fix MAC header in checksum forward engine) changes the checksum + functions adds switches to control whether to exchange MAC address. + Currently, our test scripts are based on not exchanging MAC addresses, mac-swap needs to be disabled: + testpmd> csum mac-swap off 0 + 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:: @@ -5174,6 +5180,12 @@ subcase 2: PFCP FDIR vlan strip off SW checksum offload check testpmd> port start all testpmd> set verbose 1 testpmd> set promisc 0 on + + Due to DPDK 236bc417e2da(app/testpmd: fix MAC header in checksum forward engine) changes the checksum + functions adds switches to control whether to exchange MAC address. + Currently, our test scripts are based on not exchanging MAC addresses, mac-swap needs to be disabled: + testpmd> csum mac-swap off 0 + 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:: From patchwork Fri Nov 25 09:16:35 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Weiyuan Li X-Patchwork-Id: 120155 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 A70CDA0093; Fri, 25 Nov 2022 10:16:56 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id A3D4C42D17; Fri, 25 Nov 2022 10:16:56 +0100 (CET) Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by mails.dpdk.org (Postfix) with ESMTP id D336440150 for ; Fri, 25 Nov 2022 10:16:55 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1669367816; x=1700903816; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=0yyTkY16GbbNLE8WW4X+wgxJwJfWdSJvpcz/eRK4ztQ=; b=DkqP6ieLZ6R/nxWvTkXdxeHVOjd167Z0a3UHg0t1VkXdHDjZvNmQstT3 RsaEYW3HBumKsxZWqcVn7fxQcdva0qB/sZASdVH235+H/PPxDcn4lgkZB e9RNqQqMP3nn8EsIieQKN0KELiCPXnavbYCIA6nTLRdKnZP0bG8Tvprqy CDRyuS8isRBhCI/ZX/XbQJhrQUDEvn6FQUOOMNtBKr1Zaqb6KeJoxcJzf 1/8RzQMTZodjSa6j1HrciJyqWrdX++VWBOudoaP0pu7NBAdeQzY02Cyas ZlsjdnWbwsiOcosfPiCk3nrpV7PbYTNcxeUxLNeaque6Kxsk2H5WwVq+u Q==; X-IronPort-AV: E=McAfee;i="6500,9779,10541"; a="294148506" X-IronPort-AV: E=Sophos;i="5.96,193,1665471600"; d="scan'208";a="294148506" Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Nov 2022 01:16:55 -0800 X-IronPort-AV: E=McAfee;i="6500,9779,10541"; a="971513355" X-IronPort-AV: E=Sophos;i="5.96,193,1665471600"; d="scan'208";a="971513355" Received: from unknown (HELO localhost.localdomain) ([10.239.252.248]) by fmsmga005-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Nov 2022 01:16:54 -0800 From: Weiyuan Li To: dts@dpdk.org, yuan.peng@intel.com Cc: Weiyuan Li Subject: [dts][PATCH V1 10/12] tests/ice_iavf_fdir: dts adaptation DPDk checksum function changes Date: Fri, 25 Nov 2022 17:16:35 +0800 Message-Id: <20221125091637.1811-10-weiyuanx.li@intel.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20221125091637.1811-1-weiyuanx.li@intel.com> References: <20221125091637.1811-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 DPDK22.11 236bc417e2da(app/testpmd: fix MAC header in checksum forward engine) changes the checksum functions adds switches to control whether to exchange MAC address. Modify DTS code to adapt to this change. Signed-off-by: Weiyuan Li --- tests/TestSuite_ice_iavf_fdir.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/TestSuite_ice_iavf_fdir.py b/tests/TestSuite_ice_iavf_fdir.py index d6ca832a..6410920c 100644 --- a/tests/TestSuite_ice_iavf_fdir.py +++ b/tests/TestSuite_ice_iavf_fdir.py @@ -11082,6 +11082,7 @@ class TestICEIAVFFdir(TestCase): self.dut.send_expect("csum set udp %s %d" % (hw, port), "testpmd>") self.dut.send_expect("port start all", "testpmd>") self.dut.send_expect("set promisc 0 on", "testpmd>") + self.dut.send_expect("csum mac-swap off 0", "testpmd>") self.dut.send_expect("start", "testpmd>") def get_chksum_values(self, packets_expected): From patchwork Fri Nov 25 09:16:36 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Weiyuan Li X-Patchwork-Id: 120156 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 CA88DA0032; Fri, 25 Nov 2022 10:16:58 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id BFF3E4021F; Fri, 25 Nov 2022 10:16:58 +0100 (CET) Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by mails.dpdk.org (Postfix) with ESMTP id 5D7B140150 for ; Fri, 25 Nov 2022 10:16:57 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1669367817; x=1700903817; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=w04FvViwIvfUs+BMM8mfs9H9Jg04YoIZNmLsoZeVnIQ=; b=K9xj/qSyPFwACQ6iTRZF0wNOb49CzSe8pSF0g471egxxHr+iwmPvXjYZ v9XQipPl+kgwMVYVNimS1v0etKcVbti/FDmSlyj5cFQN6LZOARET5ozmc 01TDiKXxm4xaHPntUwziieCOpZJPCfFxFy9sagd4vUtPPbyCdjJkhIur0 e4SqAWeT/KVdCRZQ4pJ/mjcBLj4AOBK/r8vEfgIlXbG9cFcoMn7OQChaj yVGTuDk8ARJGVzFzUZ2AxZIZgECofV6wiF+7eBeH/O3stSkD4qRXVSe46 tdbz1D+7N8wgy7h3EYwzO/kBX6OmRyiTpjutLkj1G7JCAPj/fVsaHaOaJ A==; X-IronPort-AV: E=McAfee;i="6500,9779,10541"; a="294148512" X-IronPort-AV: E=Sophos;i="5.96,193,1665471600"; d="scan'208";a="294148512" Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Nov 2022 01:16:57 -0800 X-IronPort-AV: E=McAfee;i="6500,9779,10541"; a="971513362" X-IronPort-AV: E=Sophos;i="5.96,193,1665471600"; d="scan'208";a="971513362" Received: from unknown (HELO localhost.localdomain) ([10.239.252.248]) by fmsmga005-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Nov 2022 01:16:55 -0800 From: Weiyuan Li To: dts@dpdk.org, yuan.peng@intel.com Cc: Weiyuan Li Subject: [dts][PATCH V1 11/12] test_plans/tx_preparation: dts adaptation DPDk checksum function changes Date: Fri, 25 Nov 2022 17:16:36 +0800 Message-Id: <20221125091637.1811-11-weiyuanx.li@intel.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20221125091637.1811-1-weiyuanx.li@intel.com> References: <20221125091637.1811-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 DPDK22.11 236bc417e2da(app/testpmd: fix MAC header in checksum forward engine) changes the checksum functions adds switches to control whether to exchange MAC address. Modify DTS code to adapt to this change. Signed-off-by: Weiyuan Li --- test_plans/tx_preparation_test_plan.rst | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/test_plans/tx_preparation_test_plan.rst b/test_plans/tx_preparation_test_plan.rst index 9d68782b..a739c13d 100644 --- a/test_plans/tx_preparation_test_plan.rst +++ b/test_plans/tx_preparation_test_plan.rst @@ -64,6 +64,11 @@ Enable hardware checksum for IP/TCP/UDP packets:: testpmd> csum set tcp hw 0 testpmd> csum set udp hw 0 +Due to DPDK 236bc417e2da(app/testpmd: fix MAC header in checksum forward engine) changes the checksum +functions adds switches to control whether to exchange MAC address. +Currently, our test scripts are based on not exchanging MAC addresses, mac-swap needs to be disabled: + + testpmd> csum mac-swap off 0 Test Case: TX preparation forwarding of non-TSO packets ======================================================= From patchwork Fri Nov 25 09:16:37 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Weiyuan Li X-Patchwork-Id: 120157 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 01109A0032; Fri, 25 Nov 2022 10:17:00 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id E7C134161A; Fri, 25 Nov 2022 10:16:59 +0100 (CET) Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by mails.dpdk.org (Postfix) with ESMTP id D7DED4161A for ; Fri, 25 Nov 2022 10:16:58 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1669367819; x=1700903819; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=QDymXv+1pXIm32fhJP0UPoS8DloLNteODA3vteDbReQ=; b=TMp3EpOPR/S0t++rmq8csrkQGty3wzLr7jzyyk7DpIuGFi/w9F9WGPqX mNhCM5ybLlbDjLigG9Ki6KSti9t7fQj9HgU5jy75V2RQ+PhdJRQWHlH1h uhW03mQ8lKfNWWClGKDrZ+TK70yqjUViMbVqPY7N63UdVm/zPUmqNupa6 4xID4Fm1FRcOqk4l8KxdFA/Y0SRS5JkU56jPU0zJ+L907t6mi0Rt/ha+s WpRl5us5eZg96okg8C8bKdKuoo38UTWsmL1T5E/AvOqtMcxGxbU0WOQuE Z3J82geQpger11Pb/0l0HBtI0qgylDhrjIDUDIaVuPe3MoZ9pyd4pcV/q w==; X-IronPort-AV: E=McAfee;i="6500,9779,10541"; a="294148517" X-IronPort-AV: E=Sophos;i="5.96,193,1665471600"; d="scan'208";a="294148517" Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Nov 2022 01:16:58 -0800 X-IronPort-AV: E=McAfee;i="6500,9779,10541"; a="971513369" X-IronPort-AV: E=Sophos;i="5.96,193,1665471600"; d="scan'208";a="971513369" Received: from unknown (HELO localhost.localdomain) ([10.239.252.248]) by fmsmga005-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Nov 2022 01:16:57 -0800 From: Weiyuan Li To: dts@dpdk.org, yuan.peng@intel.com Cc: Weiyuan Li Subject: [dts][PATCH V1 12/12] tests/tx_preparation: dts adaptation DPDk checksum function changes Date: Fri, 25 Nov 2022 17:16:37 +0800 Message-Id: <20221125091637.1811-12-weiyuanx.li@intel.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20221125091637.1811-1-weiyuanx.li@intel.com> References: <20221125091637.1811-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 DPDK22.11 236bc417e2da(app/testpmd: fix MAC header in checksum forward engine) changes the checksum functions adds switches to control whether to exchange MAC address. Modify DTS code to adapt to this change. Signed-off-by: Weiyuan Li Acked-by: Yuan Peng Tested-by: Song Jiale --- tests/TestSuite_tx_preparation.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/TestSuite_tx_preparation.py b/tests/TestSuite_tx_preparation.py index 42fff1cf..51d02d10 100644 --- a/tests/TestSuite_tx_preparation.py +++ b/tests/TestSuite_tx_preparation.py @@ -183,6 +183,7 @@ class TestTX_preparation(TestCase): """ self.dut_testpmd.execute_cmd("tso set 0 0") self.dut_testpmd.execute_cmd("port start all") + self.dut_testpmd.execute_cmd("csum mac-swap off 0", "testpmd>") self.dut_testpmd.execute_cmd("start") self.send_packet_verify() @@ -192,6 +193,7 @@ class TestTX_preparation(TestCase): ftag functional test """ self.dut_testpmd.execute_cmd("tso set %s 0" % TSO_value) + self.dut_testpmd.execute_cmd("csum mac-swap off 0", "testpmd>") self.dut_testpmd.execute_cmd("port start all") self.dut_testpmd.execute_cmd("start")