From: sunqin <qinx.sun@intel.com>
To: dts@dpdk.org
Cc: sunqin <qinx.sun@intel.com>
Subject: [dts] [PATCH V1 1/3] framework/pmd_output add method to get maximum number of rules
Date: Fri, 8 Jan 2021 14:19:51 +0000 [thread overview]
Message-ID: <20210108141953.8575-2-qinx.sun@intel.com> (raw)
In-Reply-To: <20210108141953.8575-1-qinx.sun@intel.com>
Add 'get_max_rule_number' method
Signed-off-by: sunqin <qinx.sun@intel.com>
---
framework/pmd_output.py | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/framework/pmd_output.py b/framework/pmd_output.py
index 3418efe4..3daa86b6 100644
--- a/framework/pmd_output.py
+++ b/framework/pmd_output.py
@@ -299,3 +299,11 @@ class PmdOutput():
break
sleep(1)
return 'down' not in status
+
+ def get_max_rule_number(self,obj,out):
+ res = re.search(r"fd_fltr_guar\s+=\s+(\d+).*fd_fltr_best_effort\s+=\s+(\d+)\.",out)
+ obj.verify(res,"'fd_fltr_guar' and 'fd_fltr_best_effort not found'")
+ fltr_guar,fltr_best = res.group(1),res.group(2)
+ max_rule = int(fltr_guar) + int(fltr_best)
+ obj.logger.info(f'this Card max rule number is :{max_rule}')
+ return max_rule
--
2.17.1
next prev parent reply other threads:[~2021-01-08 5:45 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-01-08 14:19 [dts] [PATCH V1 0/3] change " sunqin
2021-01-08 6:43 ` Zhao, HaiyangX
2021-01-08 7:11 ` Sun, QinX
2021-01-08 14:19 ` sunqin [this message]
2021-01-08 14:19 ` [dts] [PATCH V1 2/3] tests/cvl_switch_filter " sunqin
2021-01-08 14:19 ` [dts] [PATCH V1 3/3] tests/cvl_fdir change method to get maximum threshold " sunqin
2021-01-13 7:10 ` [dts] [PATCH V1 0/3] change method to get maximum number " Tu, Lijuan
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=20210108141953.8575-2-qinx.sun@intel.com \
--to=qinx.sun@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).