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 6CD05A0C4E; Tue, 2 Nov 2021 07:19:37 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 6785C40DF6; Tue, 2 Nov 2021 07:19:37 +0100 (CET) Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by mails.dpdk.org (Postfix) with ESMTP id B62064068F for ; Tue, 2 Nov 2021 07:19:36 +0100 (CET) X-IronPort-AV: E=McAfee;i="6200,9189,10155"; a="228646352" X-IronPort-AV: E=Sophos;i="5.87,201,1631602800"; d="scan'208";a="228646352" Received: from orsmga007.jf.intel.com ([10.7.209.58]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Nov 2021 23:19:26 -0700 X-IronPort-AV: E=Sophos;i="5.87,201,1631602800"; d="scan'208";a="488967513" Received: from unknown (HELO dpdk-zhaohy-t.sh.intel.com) ([10.240.183.68]) by orsmga007-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Nov 2021 23:19:24 -0700 From: Xiang An To: dts@dpdk.org Cc: xiangx.an@intel.com Date: Tue, 2 Nov 2021 14:19:15 +0800 Message-Id: <1635833956-68872-1-git-send-email-xiangx.an@intel.com> X-Mailer: git-send-email 1.8.3.1 Subject: [dts] [PATCH V2 1/2] tests/vf_vlan: modify code to adapt avx512 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 Sender: "dts" Signed-off-by: Xiang An --- tests/TestSuite_vf_vlan.py | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/tests/TestSuite_vf_vlan.py b/tests/TestSuite_vf_vlan.py index 127eca3..3bbfa38 100644 --- a/tests/TestSuite_vf_vlan.py +++ b/tests/TestSuite_vf_vlan.py @@ -35,7 +35,7 @@ import time from framework.packet import Packet from framework.pmd_output import PmdOutput -from framework.settings import get_nic_name +from framework.settings import get_nic_name, load_global_setting, DPDK_RXMODE_SETTING from framework.test_case import TestCase from framework.virt_common import VM @@ -346,7 +346,10 @@ class TestVfVlan(TestCase): self.vm0_dut_ports = self.vm_dut_0.get_ports('any') self.vm0_testpmd = PmdOutput(self.vm_dut_0) - self.vm0_testpmd.start_testpmd(VM_CORES_MASK) + if load_global_setting(DPDK_RXMODE_SETTING) == 'default': + self.vm0_testpmd.start_testpmd(VM_CORES_MASK) + elif load_global_setting(DPDK_RXMODE_SETTING) == 'avx512': + self.vm0_testpmd.start_testpmd(VM_CORES_MASK, '--enable-rx-cksum') self.vm0_testpmd.execute_cmd('set fwd rxonly') self.vm0_testpmd.execute_cmd('set verbose 1') self.vm0_testpmd.execute_cmd('vlan set strip on 0') @@ -417,7 +420,10 @@ class TestVfVlan(TestCase): if self.kdriver == "i40e": self.vm0_testpmd.start_testpmd(VM_CORES_MASK, '') else: - self.vm0_testpmd.start_testpmd(VM_CORES_MASK) + if load_global_setting(DPDK_RXMODE_SETTING) == 'default': + self.vm0_testpmd.start_testpmd(VM_CORES_MASK) + elif load_global_setting(DPDK_RXMODE_SETTING) == 'avx512': + self.vm0_testpmd.start_testpmd(VM_CORES_MASK, '--enable-rx-cksum') self.vm0_testpmd.execute_cmd('set fwd rxonly') self.vm0_testpmd.execute_cmd('set verbose 1') self.vm0_testpmd.execute_cmd('start') -- 1.8.3.1