[V1] framework/pmd_output: fix rx mode parameter may be duplicated

Message ID 20201224071409.18364-1-haiyangx.zhao@intel.com (mailing list archive)
State Accepted
Headers
Series [V1] framework/pmd_output: fix rx mode parameter may be duplicated |

Commit Message

Zhao, HaiyangX Dec. 24, 2020, 7:14 a.m. UTC
  the rx mode eal param force-max-simd-bitwidth may be duplicated
when it is setted both in execution.cfg and suite, fix it by
passing the eal parm to create_eal_parameter.

Signed-off-by: Haiyang Zhao <haiyangx.zhao@intel.com>
---
 framework/pmd_output.py | 1 +
 1 file changed, 1 insertion(+)
  

Comments

Zhao, HaiyangX Dec. 24, 2020, 7:33 a.m. UTC | #1
Tested-by:  Haiyang Zhao <haiyangx.zhao@intel.com>

Best Regards,
Zhao Haiyang

> -----Original Message-----
> From: Haiyang Zhao <haiyangx.zhao@intel.com>
> Sent: Thursday, December 24, 2020 15:14
> To: dts@dpdk.org
> Cc: Zhao, HaiyangX <haiyangx.zhao@intel.com>
> Subject: [dts][PATCH V1] framework/pmd_output: fix rx mode parameter
> may be duplicated
  
Tu, Lijuan Dec. 24, 2020, 8:39 a.m. UTC | #2
> the rx mode eal param force-max-simd-bitwidth may be duplicated when it
> is setted both in execution.cfg and suite, fix it by passing the eal parm to
> create_eal_parameter.
> 
> Signed-off-by: Haiyang Zhao <haiyangx.zhao@intel.com>

Applied
  

Patch

diff --git a/framework/pmd_output.py b/framework/pmd_output.py
index f4ea6670..3418efe4 100644
--- a/framework/pmd_output.py
+++ b/framework/pmd_output.py
@@ -133,6 +133,7 @@  class PmdOutput():
             file_prefix = tmp[-1].strip()
             config['prefix'] = file_prefix
         eal_param = re.sub(re_file_prefix, '', eal_param)
+        config['other_eal_param'] = eal_param
 
         config['cores'] = cores
         if ' -w ' not in eal_param and ' -a ' not in eal_param and ' -b ' not in eal_param \