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 089F5A04E7; Wed, 4 Nov 2020 10:22:47 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id EE92CC8BC; Wed, 4 Nov 2020 10:22:45 +0100 (CET) Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) by dpdk.org (Postfix) with ESMTP id A41A0C8BC for ; Wed, 4 Nov 2020 10:22:44 +0100 (CET) IronPort-SDR: 4wv7Ph3ie7XNi1r2JYT8mWX8ILVcS0ob7QKqGLeZlfZ9Cm0fpyT9Zor8d3CR4ZFi4m/gEpIKTB eBxAP+5BCAbA== X-IronPort-AV: E=McAfee;i="6000,8403,9794"; a="230815958" X-IronPort-AV: E=Sophos;i="5.77,450,1596524400"; d="scan'208";a="230815958" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga005.jf.intel.com ([10.7.209.41]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Nov 2020 01:22:42 -0800 IronPort-SDR: Mu53hDD6Ld+n/NVY29XndywoxVky/K6WDHRjk+HBGx6aZMlpAYH11CG+woG+8MSMbiTteCGx+b qxharLLUwLfw== X-IronPort-AV: E=Sophos;i="5.77,450,1596524400"; d="scan'208";a="538844456" Received: from unknown (HELO localhost.localdomain) ([10.240.183.55]) by orsmga005-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Nov 2020 01:22:41 -0800 From: Haiyang Zhao To: Lijuan.Tu@intel.com, dts@dpdk.org Cc: Haiyang Zhao Date: Wed, 4 Nov 2020 17:21:08 +0800 Message-Id: <20201104092108.13778-4-haiyangx.zhao@intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201104092108.13778-1-haiyangx.zhao@intel.com> References: <20201104092108.13778-1-haiyangx.zhao@intel.com> Subject: [dts] [PATCH V1 3/3] framework/dut: add eal parameters for different rx_mode 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" *.add eal parameters for novector/sse/avx2/avx512. Signed-off-by: Haiyang Zhao --- framework/dut.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/framework/dut.py b/framework/dut.py index bef0d15..656cb59 100644 --- a/framework/dut.py +++ b/framework/dut.py @@ -229,6 +229,15 @@ class Dut(Crb): shared_lib_path = settings.load_global_setting(settings.HOST_SHARED_LIB_PATH) 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 ' return eal_str -- 2.17.1