From patchwork Fri Dec 9 09:38:21 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ke Xu X-Patchwork-Id: 120702 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 94D9BA00C2; Fri, 9 Dec 2022 10:39:49 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 8F50F40E0F; Fri, 9 Dec 2022 10:39:49 +0100 (CET) Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by mails.dpdk.org (Postfix) with ESMTP id 23CCD40E03 for ; Fri, 9 Dec 2022 10:39:47 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1670578788; x=1702114788; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=lv4b5sSuG8g+5hToGJn1q2ftmAJXGK8c8cSF4rzq+NU=; b=hG6oKSW0DBZwu1NyfiYR6sZWarJF9BZdIRfP0X1UPdmseX0AtIxPXKaI jgf1aPESyIjlBtDaLqDnVEJvzPSsPwbAViHWnkVxZ655wKvGpJjwt4ecA fxXSbc/WHG1qJhIuHo7w21Bzl1H16oQHHHv0MJLR8uhng8YTv8BSYBNj/ eJfM3+HnLvv9KRBsr9g6N3d88KRc1nNXCaiZpnplb5vXrnRYWjAK574uj gQNj2LzgLpBSRkxHPsx5yLAwamXtq7Am5gr/mLZwnuuDDzd/7lpDe+PWn nZvLvvEa13dHOSjrBxtH9nV9bA3749kLn2/VGCgE2ZshV1IfLKKkVqmuF g==; X-IronPort-AV: E=McAfee;i="6500,9779,10555"; a="319285059" X-IronPort-AV: E=Sophos;i="5.96,230,1665471600"; d="scan'208";a="319285059" Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 09 Dec 2022 01:39:47 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10555"; a="976224953" X-IronPort-AV: E=Sophos;i="5.96,230,1665471600"; d="scan'208";a="976224953" Received: from dpdk-xuke-lab.sh.intel.com ([10.67.119.8]) by fmsmga005.fm.intel.com with ESMTP; 09 Dec 2022 01:39:46 -0800 From: Ke Xu To: dts@dpdk.org Cc: ke1.xu@intel.com, weiyuanx.li@intel.com, lijuan.tu@intel.com, qi.fu@intel.com Subject: [DTS][PATCH V1 4/4] tests/vf_offload: dts adaptation DPDK checksum function changes Date: Fri, 9 Dec 2022 17:38:21 +0800 Message-Id: <20221209093821.341263-5-ke1.xu@intel.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221209093821.341263-1-ke1.xu@intel.com> References: <20221209093821.341263-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 aab84798..535b7493 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") @@ -582,6 +584,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")