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