[V1] tests/perf_test_base: add '--parse-ptype' parameter when test l3fwd with EM mode

Message ID 20230112055552.1312174-1-weix.ling@intel.com (mailing list archive)
State Accepted
Headers
Series [V1] tests/perf_test_base: add '--parse-ptype' parameter when test l3fwd with EM mode |

Checks

Context Check Description
ci/Intel-dts-format-test success Testing OK
ci/Intel-dts-pylama-test success Testing OK
ci/Intel-dts-suite-test warning SKIPPED

Commit Message

Ling, WeiX Jan. 12, 2023, 5:55 a.m. UTC
  When test l3fwd with EM mode, need add with `--parse-ptype` in start
dpdk-l3fwd command line or start dpdk-l3fwd will failed.

Signed-off-by: Wei Ling <weix.ling@intel.com>
---
 tests/perf_test_base.py | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
  

Comments

Tu, Lijuan Jan. 13, 2023, 2:45 a.m. UTC | #1
On Thu, 12 Jan 2023 13:55:52 +0800, Wei Ling <weix.ling@intel.com> wrote:
> When test l3fwd with EM mode, need add with `--parse-ptype` in start
> dpdk-l3fwd command line or start dpdk-l3fwd will failed.
> 
> Signed-off-by: Wei Ling <weix.ling@intel.com>


Applied, thanks
  

Patch

diff --git a/tests/perf_test_base.py b/tests/perf_test_base.py
index 62d416cf..5c87163f 100644
--- a/tests/perf_test_base.py
+++ b/tests/perf_test_base.py
@@ -823,7 +823,11 @@  class PerfTestBase(object):
             command_line += " --rx-queue-size {rxtx} --tx-queue-size {rxtx}".format(
                 rxtx=self.__rxtx_queue_size
             )
-        if self.nic in suppored_nics or self.__mode is SUITE_TYPE.VF:
+        if (
+            self.nic in suppored_nics
+            or self.__mode is SUITE_TYPE.VF
+            or mode == MATCH_MODE.EM
+        ):
             command_line += " --parse-ptype"
         if mode == MATCH_MODE.EM:
             # use exact mode