[dts] [PATCH V1] tests/rte_flow_common: optimize scripts

Song Jiale songx.jiale at intel.com
Wed Sep 21 16:23:55 CEST 2022


1. "check_queue" is repeated, delete one.
2. the method "check_rss" requires the parameter "rxq", so pass the parameter 
"rxq" to the variable "check_param".

Signed-off-by: Song Jiale <songx.jiale at intel.com>
---
 tests/rte_flow_common.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/tests/rte_flow_common.py b/tests/rte_flow_common.py
index 87892c13..02c85f85 100644
--- a/tests/rte_flow_common.py
+++ b/tests/rte_flow_common.py
@@ -129,6 +129,7 @@ def check_output_log_queue_region_mismatched(out, func_param, expect_results):
         func_param["expect_port"] if func_param["expect_port"] else 0
     )
     check_param["queue"] = func_param["expect_queues"]
+    check_param["rxq"] = func_param["rxq"]
     try:
         check_queue(out, expect_pkts, check_param, stats=False)
     except Exception as ex:
@@ -151,7 +152,7 @@ def check_output_log_in_queue_mismatched(out, func_param, expect_results):
         func_param["expect_port"] if func_param["expect_port"] else 0
     )
     check_param["queue"] = func_param["expect_queues"]
-    check_queue(out, expect_pkts, check_param, stats=False)
+    check_param["rxq"] = func_param["rxq"]
     try:
         check_queue(out, expect_pkts, check_param, stats=False)
     except Exception as ex:
-- 
2.25.1



More information about the dts mailing list