From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 1CCBEA0524; Fri, 6 Nov 2020 11:01:10 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 0777B6004; Fri, 6 Nov 2020 11:01:09 +0100 (CET) Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by dpdk.org (Postfix) with ESMTP id 147515A51 for ; Fri, 6 Nov 2020 11:01:06 +0100 (CET) IronPort-SDR: EG7JgYDmUoexdfymw6tEem9vdo7+dZXzj7b0IS0CymHu5tXS6bCiOZeVIbYgTaS7ptAc1q7o0s bh3K8RKQ7KTQ== X-IronPort-AV: E=McAfee;i="6000,8403,9796"; a="187447503" X-IronPort-AV: E=Sophos;i="5.77,456,1596524400"; d="scan'208";a="187447503" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 Nov 2020 02:01:06 -0800 IronPort-SDR: NWd4rOxKCce78C61PhSqk5FCKx5g18hYGkXpcAGnnCGFu/HwhzzTBoWQi+sCeSxq3Q6birvYSv 7hmiTfBp8ECA== X-IronPort-AV: E=Sophos;i="5.77,456,1596524400"; d="scan'208";a="306814929" Received: from unknown (HELO localhost.localdomain) ([10.240.183.57]) by fmsmga008-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 Nov 2020 02:01:04 -0800 From: Haiyang Zhao To: dts@dpdk.org, Lijuan.Tu@intel.com Cc: Haiyang Zhao Date: Fri, 6 Nov 2020 17:55:35 +0800 Message-Id: <20201106095535.5650-3-haiyangx.zhao@intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201106095535.5650-1-haiyangx.zhao@intel.com> References: <20201106095535.5650-1-haiyangx.zhao@intel.com> Subject: [dts] [PATCH V1 2/2] framework/dut: add check if the rx mode eal param is duplicate X-BeenThere: dts@dpdk.org X-Mailman-Version: 2.1.15 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" *.ignore the rx mode config in execution.cfg if the rx mode is setted in suites. Signed-off-by: Haiyang Zhao --- framework/dut.py | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/framework/dut.py b/framework/dut.py index 656cb59..d6862e8 100644 --- a/framework/dut.py +++ b/framework/dut.py @@ -230,14 +230,15 @@ class Dut(Crb): if use_shared_lib == 'true' and shared_lib_path and 'Virt' not in str(self): eal_str = eal_str + ' -d {} '.format(shared_lib_path) rx_mode = settings.load_global_setting(settings.DPDK_RXMODE_SETTING) - if rx_mode == 'novector': - eal_str = eal_str + ' --force-max-simd-bitwidth=64 ' - elif rx_mode == 'sse': - eal_str = eal_str + ' --force-max-simd-bitwidth=128 ' - elif rx_mode == 'avx2': - eal_str = eal_str + ' --force-max-simd-bitwidth=256 ' - elif rx_mode == 'avx512': - eal_str = eal_str + ' --force-max-simd-bitwidth=512 ' + if 'other_eal_param' not in config or 'force-max-simd-bitwidth' not in config['other_eal_param']: + if rx_mode == 'novector': + eal_str = eal_str + ' --force-max-simd-bitwidth=64 ' + elif rx_mode == 'sse': + eal_str = eal_str + ' --force-max-simd-bitwidth=128 ' + elif rx_mode == 'avx2': + eal_str = eal_str + ' --force-max-simd-bitwidth=256 ' + elif rx_mode == 'avx512': + eal_str = eal_str + ' --force-max-simd-bitwidth=512 ' return eal_str -- 2.17.1