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 1F980A0544; Fri, 23 Sep 2022 07:53:07 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 1AD0A400D7; Fri, 23 Sep 2022 07:53:07 +0200 (CEST) Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by mails.dpdk.org (Postfix) with ESMTP id 9D5EB4003C for ; Fri, 23 Sep 2022 07:53:05 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1663912385; x=1695448385; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=UrgkAPExzFtMvDrcXyTUyJh4Ls7TYmJYh1sIcaUmD8o=; b=ZMHGUqjqIdJAF4dSX5O4d0M5v4+yFJYjOJ+jmFiOp1VSBnRHUXXAliEY cYwhGgCDNt4izAqFKpS4FvlJ+BJbj9uWYXdrAD24k1kqoK9FFSAZ+C0j5 BeNv7/yMglKBQ+6Ux+/fLrjh4fmSQDhkBJmzjizlUiz0iCOJzjrjmwdd1 35iw+0l+L9aF9EkFM2B+VzNzoMXFxgp8RMjOeG8ek9OsqIkNmFy4LOzrv ydCOdxHpDkGb+CkQoYDAlOD9M7oyKqToWVFd34WOdEaDmoM/G9SLNJlw/ 2aZADwugtO4BiP+Vb1tEq4h7LewGnPAHAiIUKVgeQRTTa+7rn9Uso5X/F Q==; X-IronPort-AV: E=McAfee;i="6500,9779,10478"; a="280884646" X-IronPort-AV: E=Sophos;i="5.93,337,1654585200"; d="scan'208";a="280884646" Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Sep 2022 22:53:05 -0700 X-IronPort-AV: E=Sophos;i="5.93,337,1654585200"; d="scan'208";a="724003959" Received: from unknown (HELO localhost.localdomain) ([10.239.252.248]) by fmsmga002-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Sep 2022 22:53:03 -0700 From: Weiyuan Li To: dts@dpdk.org Cc: Weiyuan Li , Lingli Chen , Fu@dpdk.org, Qi Subject: [dts][PATCH V3 2/2] tests/checksum_offload: checksum suite script and testplan optimization Date: Fri, 23 Sep 2022 13:53:21 +0800 Message-Id: <20220923055321.23361-2-weiyuanx.li@intel.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20220923055321.23361-1-weiyuanx.li@intel.com> References: <20220923055321.23361-1-weiyuanx.li@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 Optimize the test case name to match test plan, add test case in test plan to map test suite and delete the cmd "tx_checksum set 0x0 0" using "csum set". Signed-off-by: Weiyuan Li --- Tested-by: Lingli Chen Acked-by: Fu, Qi v2: -modify test plan delete IXIA description. v3: -delete case "Validate checksum on the receive packet". -optimize the case in the test plan enable csum to used "csum set ip|tcp|udp|sctp hw 0. -optimzie the test steps of cases in the test plan change from IXIA to scapy. tests/TestSuite_checksum_offload.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/TestSuite_checksum_offload.py b/tests/TestSuite_checksum_offload.py index 1ccc884c..b181bf37 100644 --- a/tests/TestSuite_checksum_offload.py +++ b/tests/TestSuite_checksum_offload.py @@ -605,7 +605,7 @@ class TestChecksumOffload(TestCase): # send the packet checksum value different from the expected value self.checksum_valid_flags(pkts_bad, 0) - def test_checksum_offload_enable(self): + def test_insert_checksum_on_the_transmit_packet(self): """ Insert IPv4/IPv6 UDP/TCP/SCTP checksum on the transmit packet. Enable Checksum offload. @@ -654,7 +654,7 @@ class TestChecksumOffload(TestCase): self.verify(len(result) == 0, ",".join(list(result.values()))) - def test_checksum_offload_disable(self): + def test_do_not_insert_checksum_on_the_transmit_packet(self): """ Do not insert IPv4/IPv6 UDP/TCP checksum on the transmit packet. Disable Checksum offload. -- 2.25.1