From patchwork Mon Jul 18 08:25: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: 114007 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 7E817A00C2; Mon, 18 Jul 2022 10:25:37 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 4DEE64069F; Mon, 18 Jul 2022 10:25:37 +0200 (CEST) Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by mails.dpdk.org (Postfix) with ESMTP id CAE9D40041 for ; Mon, 18 Jul 2022 10:25:35 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1658132736; x=1689668736; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=wKlrLQUOnt6r+Tkcpy9QsKogjT2NmTedPiMgcOiXpTw=; b=C9FDHmvytfaTdHGALbQ0IDpPbai1W756H0O4RpUoNjYbCORI1rqeNP/t 9vTB01OTPMMB5r8w091iJqK7SVM6X7cXYWU3jQ1JdRAkw6nr6wRNLtIn/ BSQAG6LLPTin0kHXFaz4TDf7MpuDszOKpZpZnP6IZIXbMwIl+iX6T0WBp 4uikwhdXPMkrXAs0/8yjK7N9Zh0i1k53JFeXEm3g4OdQQ0LY6A0ouIxg3 pGHPmI4AfaGAj5xnt9rbRenloA3wnDnSQnN5cQd/GImhPu1dUNQWV5uPq cGlf5K2MWuW80HqUqIvuKZe6c/dcXzDZVY9zf/o74XdjocI42QJcYMihm Q==; X-IronPort-AV: E=McAfee;i="6400,9594,10411"; a="286905036" X-IronPort-AV: E=Sophos;i="5.92,280,1650956400"; d="scan'208";a="286905036" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 Jul 2022 01:25:34 -0700 X-IronPort-AV: E=Sophos;i="5.92,280,1650956400"; d="scan'208";a="655177899" Received: from unknown (HELO localhost.localdomain) ([10.239.252.248]) by fmsmga008-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 Jul 2022 01:25:33 -0700 From: Weiyuan Li To: dts@dpdk.org Cc: Weiyuan Li Subject: [dts][PATCH V1 1/2] tests/checksum_offload: checksum suite script and testplan optimization Date: Mon, 18 Jul 2022 16:25:30 +0800 Message-Id: <20220718082531.17145-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 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 --- 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 3554f5eb..3680db11 100644 --- a/tests/TestSuite_checksum_offload.py +++ b/tests/TestSuite_checksum_offload.py @@ -604,7 +604,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. @@ -653,7 +653,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.