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 7AED0A034C; Thu, 22 Dec 2022 10:39:01 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 7624C42D14; Thu, 22 Dec 2022 10:39:01 +0100 (CET) Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by mails.dpdk.org (Postfix) with ESMTP id 24ED9400D7 for ; Thu, 22 Dec 2022 10:38: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=1671701939; x=1703237939; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=IMY8JJiHwbS4Iq3Qwt5KtH2Cv3GluDxdZOnG7ieey84=; b=LfYLg6xqHkkgXqAO6AQcjnBR0ftgG0AO61uERSLvjPqu+uMjtkuBndok 0U9Pl0PN9EP9JVJW5tZbLmoOkhsGIhbtoS79IvrA2EGezrw3mo7lgmpSI i4qYHS+qhmhN9UbQSazGsBzaQrQqFZDT+dKieDGYdPcRGUDJnf9xe6rY2 iaKbnsgjs3aATEq968K+N3vZj8rCQWY+1G20lswz4EI05+t2zOHpFSInd RKnpm8EL2Ll5zkMzdfM81G/Ukayg9ey0SmKhnw9W5Fblt4hszeAI58pCm H1t517XdHiuIUQHaq+hp+qxj5oJ2+EtBNFyi6jM0Cj4orvmwPc4aki5lA g==; X-IronPort-AV: E=McAfee;i="6500,9779,10568"; a="299758332" X-IronPort-AV: E=Sophos;i="5.96,265,1665471600"; d="scan'208";a="299758332" Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Dec 2022 01:38:58 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10568"; a="684130101" X-IronPort-AV: E=Sophos;i="5.96,265,1665471600"; d="scan'208";a="684130101" Received: from dpdk-xuke-lab.sh.intel.com ([10.67.119.8]) by orsmga001.jf.intel.com with ESMTP; 22 Dec 2022 01:38:56 -0800 From: Ke Xu To: dts@dpdk.org Cc: weiyuanx.li@intel.com, qi.fu@intel.com, lijuan.tu@intel.com, Ke Xu Subject: [DTS][PATCH V4 4/5] tests/vf_offload: dts adaptation DPDK checksum function changes Date: Thu, 22 Dec 2022 17:37:14 +0800 Message-Id: <20221222093715.116863-5-ke1.xu@intel.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221222093715.116863-1-ke1.xu@intel.com> References: <20221222093715.116863-1-ke1.xu@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 Signed-off-by: Ke Xu --- 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 8d7440a5..3d89729d 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") @@ -612,6 +614,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.25.1