test suite reviews and discussions
 help / color / mirror / Atom feed
From: Haiyang Zhao <haiyangx.zhao@intel.com>
To: dts@dpdk.org, Lijuan.Tu@intel.com
Cc: Haiyang Zhao <haiyangx.zhao@intel.com>
Subject: [dts] [PATCH V1 2/2] framework/dut: add check if the rx mode eal param is duplicate
Date: Fri,  6 Nov 2020 17:55:35 +0800	[thread overview]
Message-ID: <20201106095535.5650-3-haiyangx.zhao@intel.com> (raw)
In-Reply-To: <20201106095535.5650-1-haiyangx.zhao@intel.com>

*.ignore the rx mode config in execution.cfg   
  if the rx mode is setted in suites.

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


  parent reply	other threads:[~2020-11-06 10:01 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-11-06  9:55 [dts] [PATCH V1 0/2] framework: fix the issue of eal param may be duplicated Haiyang Zhao
2020-11-06  9:55 ` [dts] [PATCH V1 1/2] framework/pmd_output: add other eal param into config Haiyang Zhao
2020-11-06  9:55 ` Haiyang Zhao [this message]
2020-11-11  2:59 ` [dts] [PATCH V1 0/2] framework: fix the issue of eal param may be duplicated 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=20201106095535.5650-3-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).