From patchwork Wed Dec 21 06:09:02 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ke Xu X-Patchwork-Id: 121152 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 3CDF3A0093; Wed, 21 Dec 2022 07:10:38 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 387CD42D1A; Wed, 21 Dec 2022 07:10:38 +0100 (CET) Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by mails.dpdk.org (Postfix) with ESMTP id 3299D42D1A for ; Wed, 21 Dec 2022 07:10:37 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1671603037; x=1703139037; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=Dt9eFUxh6LTxovk9q+XgaI4lMJgtKQWxBLT7NhZDEPg=; b=iU4BsA2MHLnp8FLsvIhsfbELZBAMHwRTGriHwbhtIXsvGxgu0mDLBE2b BWFk5TdLEshbk45GIpRGXEFJexU0tNWfTtzNaXvnBxLlb5SUSGzxa9lbM 7HBo2LKZqHa/s9r16jTkHCFyVEnOi/p2/ohL4Jyg+HK5fLnt6u8j0IgX8 pYYGyWM7Ct3GV5/pQ7SYb+eBUBvueaIPUZHQDBmpTJ7krCO7/qTTQhLmI gm8+BD2XljELUhJCBHYvuK7hObjykzE6bRdGe5niKaksgWgTKprfl0lt0 yB6cVds+WCy6zBR0vXERDsotXXBqSLQy1opm8654hYi5UGDt6z9VgSgI2 w==; X-IronPort-AV: E=McAfee;i="6500,9779,10567"; a="303222055" X-IronPort-AV: E=Sophos;i="5.96,261,1665471600"; d="scan'208";a="303222055" Received: from orsmga004.jf.intel.com ([10.7.209.38]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 Dec 2022 22:10:36 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10567"; a="775570326" X-IronPort-AV: E=Sophos;i="5.96,261,1665471600"; d="scan'208";a="775570326" Received: from dpdk-xuke-lab.sh.intel.com ([10.67.119.8]) by orsmga004.jf.intel.com with ESMTP; 20 Dec 2022 22:10:35 -0800 From: Ke Xu To: dts@dpdk.org Cc: lijuan.tu@intel.com, qi.fu@intel.com, weiyuanx.li@intel.com, Ke Xu Subject: [DTS][PATCH V3 4/4] tests/vf_offload: dts adaptation DPDK checksum function changes Date: Wed, 21 Dec 2022 14:09:02 +0800 Message-Id: <20221221060902.8269-5-ke1.xu@intel.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221221060902.8269-1-ke1.xu@intel.com> References: <20221221060902.8269-1-ke1.xu@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 a2edec47..07e150cf 100644 --- a/tests/TestSuite_vf_offload.py +++ b/tests/TestSuite_vf_offload.py @@ -352,6 +352,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") @@ -615,6 +617,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")