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 471DEA0C4E; Tue, 2 Nov 2021 07:43:53 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 4107F410E5; Tue, 2 Nov 2021 07:43:53 +0100 (CET) Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by mails.dpdk.org (Postfix) with ESMTP id 714FC4069F for ; Tue, 2 Nov 2021 07:43:51 +0100 (CET) X-IronPort-AV: E=McAfee;i="6200,9189,10155"; a="254803947" X-IronPort-AV: E=Sophos;i="5.87,202,1631602800"; d="scan'208";a="254803947" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Nov 2021 23:43:50 -0700 X-IronPort-AV: E=Sophos;i="5.87,202,1631602800"; d="scan'208";a="500377096" Received: from unknown (HELO dpdk-zhaohy-t.sh.intel.com) ([10.240.183.68]) by orsmga008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Nov 2021 23:43:31 -0700 From: Xiang An To: dts@dpdk.org Cc: xiangx.an@intel.com Date: Tue, 2 Nov 2021 14:43:15 +0800 Message-Id: <1635835398-70543-1-git-send-email-xiangx.an@intel.com> X-Mailer: git-send-email 1.8.3.1 Subject: [dts] [PATCH V1 1/4] tests/kernelpf_iavf: 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" Based on dpdk commit:4b64ccb328 modify dts code to adapt avx512. Signed-off-by: Xiang An --- tests/TestSuite_kernelpf_iavf.py | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/tests/TestSuite_kernelpf_iavf.py b/tests/TestSuite_kernelpf_iavf.py index dde59e1..c5836dd 100644 --- a/tests/TestSuite_kernelpf_iavf.py +++ b/tests/TestSuite_kernelpf_iavf.py @@ -44,7 +44,7 @@ import time import framework.utils as utils from framework.packet import Packet from framework.pmd_output import PmdOutput -from framework.settings import HEADER_SIZE +from framework.settings import HEADER_SIZE, load_global_setting, DPDK_RXMODE_SETTING from framework.test_case import TestCase from framework.utils import RED from framework.virt_common import VM @@ -774,7 +774,10 @@ class TestKernelpfIavf(TestCase): self.verify(bad_l4csum == 2, "Bad-ipcsum check error") def test_vf_hw_checksum_offload(self): - self.vm_testpmd.start_testpmd("all") + if load_global_setting(DPDK_RXMODE_SETTING) == 'default': + self.vm_testpmd.start_testpmd("all") + elif load_global_setting(DPDK_RXMODE_SETTING) == 'avx512': + self.vm_testpmd.start_testpmd("all", "--enable-rx-cksum") self.enable_hw_checksum() self.vm_testpmd.execute_cmd("port start all") self.vm_testpmd.execute_cmd("set verbose 1") @@ -782,7 +785,10 @@ class TestKernelpfIavf(TestCase): self.checksum_verify() def test_vf_sw_checksum_offload(self): - self.vm_testpmd.start_testpmd("all") + if load_global_setting(DPDK_RXMODE_SETTING) == 'default': + self.vm_testpmd.start_testpmd("all") + elif load_global_setting(DPDK_RXMODE_SETTING) == 'avx512': + self.vm_testpmd.start_testpmd("all", "--enable-rx-cksum") self.enable_sw_checksum() self.vm_testpmd.execute_cmd("port start all") self.vm_testpmd.execute_cmd("start") -- 1.8.3.1