From: Song Jiale <songx.jiale@intel.com>
To: dts@dpdk.org
Cc: Song Jiale <songx.jiale@intel.com>
Subject: [dts] [PATCH V1] tests/rte_flow_common: optimize scripts
Date: Wed, 21 Sep 2022 14:23:55 +0000 [thread overview]
Message-ID: <20220921142355.962191-1-songx.jiale@intel.com> (raw)
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@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
next reply other threads:[~2022-09-21 6:24 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-09-21 14:23 Song Jiale [this message]
2022-10-28 14:22 [dts] [PATCH v1] " Song Jiale
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20220921142355.962191-1-songx.jiale@intel.com \
--to=songx.jiale@intel.com \
--cc=dts@dpdk.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).