test suite reviews and discussions
 help / color / mirror / Atom feed
* [dts][PATCH V1] tests/unit_tests_eal: fix acl script call error and support different rx_mode
  2022-06-15 16:49 [dts][PATCH V1] tests/unit_tests_eal: fix acl script call error and support different rx_mode Yu Jiang
@ 2022-06-15  9:15 ` lijuan.tu
  0 siblings, 0 replies; 2+ messages in thread
From: lijuan.tu @ 2022-06-15  9:15 UTC (permalink / raw)
  To: lijuan.tu, dts, Yu Jiang; +Cc: Yu Jiang

On Wed, 15 Jun 2022 16:49:25 +0000, Yu Jiang <yux.jiang@intel.com> wrote:
> Since DTS commit "7eaf4b60 tests/l3fwdacl: modify pmd param for acl" has incorrect usage,
> fix script to support different rx_mode.
> 
> Signed-off-by: Yu Jiang <yux.jiang@intel.com>


Applied, thanks

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [dts][PATCH V1] tests/unit_tests_eal: fix acl script call error and support different rx_mode
@ 2022-06-15 16:49 Yu Jiang
  2022-06-15  9:15 ` lijuan.tu
  0 siblings, 1 reply; 2+ messages in thread
From: Yu Jiang @ 2022-06-15 16:49 UTC (permalink / raw)
  To: lijuan.tu, dts; +Cc: Yu Jiang

Since DTS commit "7eaf4b60 tests/l3fwdacl: modify pmd param for acl" has incorrect usage,
fix script to support different rx_mode.

Signed-off-by: Yu Jiang <yux.jiang@intel.com>
---
 tests/TestSuite_unit_tests_eal.py | 15 +++++++++------
 1 file changed, 9 insertions(+), 6 deletions(-)

diff --git a/tests/TestSuite_unit_tests_eal.py b/tests/TestSuite_unit_tests_eal.py
index c1de4884..9cac6197 100644
--- a/tests/TestSuite_unit_tests_eal.py
+++ b/tests/TestSuite_unit_tests_eal.py
@@ -465,15 +465,18 @@ class TestUnitTestsEal(TestCase):
         """
         Run acl autotest.
         """
-        eal_params = self.dut.create_eal_parameters(
-            other_eal_param="force-max-simd-bitwidth"
-        )
+        eal_params = self.dut.create_eal_parameters()
         app_name = self.dut.apps_name["test"]
         test_app_cmdline = app_name + eal_params
         test_app_cmdline += "--no-pci"
-
-        if self.dut.dpdk_version >= "20.11.0":
-            test_app_cmdline += " --force-max-simd-bitwidth=0"
+        # When execution.cfg set rx_mode=xxx, it should have priority.
+        print("eal_para = {}".format(eal_params))
+        if "force-max-simd-bitwidth" in eal_params:
+            pass
+        else:
+            # DTS commit 68bb1b92("tests/l3fwdacl: try to use highest available method") when dpdk > 20.11.0 by konstantin.ananyev@intel.com
+            if self.dut.dpdk_version >= "20.11.0":
+                test_app_cmdline += " --force-max-simd-bitwidth=0"
         self.dut.send_expect(test_app_cmdline, "R.*T.*E.*>.*>", self.start_test_time)
         out = self.dut.send_expect("acl_autotest", "RTE>>", self.run_cmd_time)
         self.dut.send_expect("quit", "# ")
-- 
2.25.1


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-06-15  9:15 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-15 16:49 [dts][PATCH V1] tests/unit_tests_eal: fix acl script call error and support different rx_mode Yu Jiang
2022-06-15  9:15 ` lijuan.tu

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).