From patchwork Fri Jan 6 18:09:21 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Huang, ZhiminX" X-Patchwork-Id: 121677 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 50902A00C2; Fri, 6 Jan 2023 10:49:13 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 344D9400EF; Fri, 6 Jan 2023 10:49:13 +0100 (CET) Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by mails.dpdk.org (Postfix) with ESMTP id 6168D400D4 for ; Fri, 6 Jan 2023 10:49:11 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1672998551; x=1704534551; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=GRw2zZyDqDGxmxXSf9kffqicPhwljeLb1jdcGrAT2EM=; b=IfYyXYjgPJG2CNVLSTTruPhPOLqOCGA5AD+d2+vXBJc5GlYDP+56P53l KGR9VtywKueeILIWlIvmY1LGE0g9NpaE+kYsF2OL6utrkphhy4YvNewTE WSIArod8tbKRbLLITjkyCsw0v/3Xth1/A+RQoI6RfwbGFHg88JFAcjm/d s3pVsZ04cNkv0xv4w6GxkY1WfpbB5x8pX4D5cqqhr0czEtX7x59WAw5zo ZkVlmx7sjdxGSdGXyYdwaI4BIauGXKiwBx2LpkJffqIkMj9rOjEsm5jry C9fTNTvGnSd3afBwKAyDF2Fd8vW/Gb3E+NMN3bgG+0pEqMHTygOj3aHDo A==; X-IronPort-AV: E=McAfee;i="6500,9779,10581"; a="320149775" X-IronPort-AV: E=Sophos;i="5.96,304,1665471600"; d="scan'208";a="320149775" Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 Jan 2023 01:49:10 -0800 X-IronPort-AV: E=McAfee;i="6500,9779,10581"; a="657838869" X-IronPort-AV: E=Sophos;i="5.96,304,1665471600"; d="scan'208";a="657838869" Received: from unknown (HELO localhost.localdomain) ([10.239.252.96]) by fmsmga007-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 Jan 2023 01:49:09 -0800 From: Zhimin Huang To: dts@dpdk.org Cc: Zhimin Huang Subject: [dts][PATCH V1] tests/vf_vlan:modify code to adapt avx2 and avx512 on vlan offload Date: Fri, 6 Jan 2023 18:09:21 +0000 Message-Id: <20230106180921.354155-1-zhiminx.huang@intel.com> X-Mailer: git-send-email 2.25.1 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 add parameter "--enable-hw-vlan" in testpmd. the dpdk commit 5cbfb386aa3f4c49b3cd9579e4e928cc5ab08d35 fixed avx2 not support this parameter. the avx2 behavior is not appropriate,it has gap between avx2 and avx512. so we add parameter "enable-hw-vlan" in testpmd,there is no gap in avx2 and avx512 to test vlan strip. Signed-off-by: Zhimin Huang Tested-by: Weiyuan Li Reviewed-by: Lijuan Tu --- test_plans/vf_vlan_test_plan.rst | 5 +++++ tests/TestSuite_vf_vlan.py | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/test_plans/vf_vlan_test_plan.rst b/test_plans/vf_vlan_test_plan.rst index 24877c6c..8612bd84 100644 --- a/test_plans/vf_vlan_test_plan.rst +++ b/test_plans/vf_vlan_test_plan.rst @@ -186,6 +186,11 @@ Test case4: VF tagged vlan rx Test case5: VF Vlan strip test ============================== +.. note:: + according to dpdk commit 5cbfb386aa3f4c49b3cd9579e4e928cc5ab08d35,if not add parameter "enable-hw-vlan", the vlan + offload should be disable.the avx2 behavior is not appropriate, the avx2 and avx512 shouldn't have gap on vlan + offload. so add parameter "--enable-hw-vlan" in testpmd to test vlan strip. + 1. Start testpmd with mac forward mode:: testpmd> set fwd mac diff --git a/tests/TestSuite_vf_vlan.py b/tests/TestSuite_vf_vlan.py index d5a29c04..14c675c7 100644 --- a/tests/TestSuite_vf_vlan.py +++ b/tests/TestSuite_vf_vlan.py @@ -423,7 +423,8 @@ class TestVfVlan(TestCase): self.vm0_dut_ports = self.vm_dut_0.get_ports("any") self.vm0_testpmd = PmdOutput(self.vm_dut_0) - self.launch_testpmd(dcf_flag=self.dcf_mode) + param = "--enable-hw-vlan" if not self.dcf_mode else "" + self.launch_testpmd(dcf_flag=self.dcf_mode, param=param) self.vm0_testpmd.execute_cmd("set fwd rxonly") self.vm0_testpmd.execute_cmd("set verbose 1") self.vm0_testpmd.execute_cmd("start")