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 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 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 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_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") -- 2.27.0