From patchwork Mon Dec 12 01:46:17 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ke Xu X-Patchwork-Id: 120732 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 3AD72A04FD; Mon, 12 Dec 2022 02:47:49 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 34B4342D1F; Mon, 12 Dec 2022 02:47:49 +0100 (CET) Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by mails.dpdk.org (Postfix) with ESMTP id 5260740684 for ; Mon, 12 Dec 2022 02:47:46 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1670809666; x=1702345666; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=HbtMsD6IqhpfXNAOEUJDq0FzimUgLagLyIDKvplTS3s=; b=j/38nCZk4dg9xKB0/XMSBQQK5eslvhX48atHiZxZR0oa2md+NQOW3OwJ 41pbig8SkMY4vS+5HhzuQpgxnEaH9A0f1qeQTqHmbBr+ootLN5zTa0Dr4 7LboVu1ezV0HY8ilPqBjq1PoKLqCP6stvUAijn957Eg87sPOL9v/8XJTs ZFXW+x2vGY5CgFdhctPdFv9mP2Y9Si76ePRQ6pyWx+jrs0+pm5WvjyoOz 86rRSHYNh7vhtUZjkcqsc9LpmQrzK51L9xdd4oUwcJL+ios5N9xTMPoTS 9su55VXnPRpuwd6y2KHgj22DQUEeQ9KhYNuZxsAv0UOgboCEYSH3ok1Is A==; X-IronPort-AV: E=McAfee;i="6500,9779,10558"; a="301168468" X-IronPort-AV: E=Sophos;i="5.96,237,1665471600"; d="scan'208";a="301168468" Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Dec 2022 17:47:45 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10558"; a="754754342" X-IronPort-AV: E=Sophos;i="5.96,237,1665471600"; d="scan'208";a="754754342" Received: from dpdk-xuke-lab.sh.intel.com ([10.67.119.8]) by fmsmga002.fm.intel.com with ESMTP; 11 Dec 2022 17:47:44 -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 V2 4/4] tests/vf_offload: dts adaptation DPDK checksum function changes Date: Mon, 12 Dec 2022 09:46:17 +0800 Message-Id: <20221212014617.444033-5-ke1.xu@intel.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221212014617.444033-1-ke1.xu@intel.com> References: <20221212014617.444033-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 6f169190..49c4b019 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")