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

Wei Ling weix.ling at intel.com
Thu Jan 12 06:55:52 CET 2023


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 at intel.com>
---
 tests/perf_test_base.py | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

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
-- 
2.25.1



More information about the dts mailing list