test suite reviews and discussions
 help / color / mirror / Atom feed
From: Haiyang Zhao <haiyangx.zhao@intel.com>
To: Lijuan.Tu@intel.com, dts@dpdk.org
Cc: Haiyang Zhao <haiyangx.zhao@intel.com>
Subject: [dts] [PATCH V1 3/3] framework/dut: add eal parameters for different rx_mode
Date: Wed,  4 Nov 2020 17:21:08 +0800	[thread overview]
Message-ID: <20201104092108.13778-4-haiyangx.zhao@intel.com> (raw)
In-Reply-To: <20201104092108.13778-1-haiyangx.zhao@intel.com>

*.add eal parameters for novector/sse/avx2/avx512.

Signed-off-by: Haiyang Zhao <haiyangx.zhao@intel.com>
---
 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


  parent reply	other threads:[~2020-11-04  9:22 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-11-04  9:21 [dts] [PATCH V1 0/3] framework: add eal paramters for different rx modes Haiyang Zhao
2020-11-04  9:21 ` [dts] [PATCH V1 1/3] framework/dts: optimize code Haiyang Zhao
2020-11-04  9:21 ` [dts] [PATCH V1 2/3] framework/project_dpdk: add check if cpu support avx512 Haiyang Zhao
2020-11-04  9:21 ` Haiyang Zhao [this message]
2020-11-04  9:29 ` [dts] [PATCH V1 0/3] framework: add eal paramters for different rx modes Zhao, HaiyangX
2020-11-05  2:51 ` Tu, Lijuan

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20201104092108.13778-4-haiyangx.zhao@intel.com \
    --to=haiyangx.zhao@intel.com \
    --cc=Lijuan.Tu@intel.com \
    --cc=dts@dpdk.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).