From: Weiyuan Li <weiyuanx.li@intel.com>
To: dts@dpdk.org, xueqin.lin@intel.com
Cc: Weiyuan Li <weiyuanx.li@intel.com>
Subject: [dts][PATCH V1 1/2] tests/TestSuite_generic_flow_api: remove dpdk code modification.
Date: Wed, 9 Feb 2022 22:21:05 +0800 [thread overview]
Message-ID: <20220209142106.6753-1-weiyuanx.li@intel.com> (raw)
Default use 64 queues for test.
Remove dpdk code modification.
Signed-off-by: Weiyuan Li <weiyuanx.li@intel.com>
---
tests/TestSuite_generic_flow_api.py | 12 ++++--------
1 file changed, 4 insertions(+), 8 deletions(-)
diff --git a/tests/TestSuite_generic_flow_api.py b/tests/TestSuite_generic_flow_api.py
index 23143be8..80dae50d 100644
--- a/tests/TestSuite_generic_flow_api.py
+++ b/tests/TestSuite_generic_flow_api.py
@@ -2624,17 +2624,15 @@ class TestGeneric_flow_api(TestCase):
self.tester.send_expect("ifconfig %s mtu %s" % (txItf, 1500), "# ")
self.tester.send_expect("ifconfig %s mtu %s" % (rxItf, 1500), "# ")
- def test_128_queues(self):
+ def test_64_queues(self):
set_filter_flag = 1
packet_flag = 1
if self.kdriver == "ixgbe":
- self.dut.send_expect("sed -i -e 's/#define IXGBE_NONE_MODE_TX_NB_QUEUES 64$/#define IXGBE_NONE_MODE_TX_NB_QUEUES 128/' drivers/net/ixgbe/ixgbe_ethdev.h", "# ",30)
- self.dut.build_install_dpdk(self.target)
global valports
- total_mbufs = self.request_mbufs(128) * len(valports)
+ total_mbufs = self.request_mbufs(64) * len(valports)
self.pmdout.start_testpmd(
- "all", "--disable-rss --rxq=128 --txq=128 --portmask=%s --nb-cores=4 --total-num-mbufs=%d" % (portMask, total_mbufs))
+ "all", "--disable-rss --rxq=64 --txq=64 --portmask=%s --nb-cores=4 --total-num-mbufs=%d" % (portMask, total_mbufs))
self.dut.send_expect(
"set stat_qmap rx %s 0 0" % valports[0], "testpmd> ")
self.dut.send_expect(
@@ -2647,7 +2645,7 @@ class TestGeneric_flow_api(TestCase):
"vlan set filter off %s" % valports[0], "testpmd> ")
self.dut.send_expect(
"vlan set filter off %s" % valports[1], "testpmd> ")
- queue = ['64', '127', '128']
+ queue = ['16', '32', '64']
for i in [0, 1, 2]:
if i == 2:
out = self.dut.send_expect(
@@ -2686,8 +2684,6 @@ class TestGeneric_flow_api(TestCase):
packet_flag = 0
break
self.dut.send_expect("quit", "#", timeout=30)
- self.dut.send_expect("sed -i -e 's/#define IXGBE_NONE_MODE_TX_NB_QUEUES 128$/#define IXGBE_NONE_MODE_TX_NB_QUEUES 64/' drivers/net/ixgbe/ixgbe_ethdev.h", "# ",30)
- self.dut.build_install_dpdk(self.target)
self.verify(set_filter_flag == 1, "set filters error")
self.verify(packet_flag == 1, "packet pass assert error")
else:
--
2.27.0
next reply other threads:[~2022-02-08 11:21 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-02-09 14:21 Weiyuan Li [this message]
2022-02-09 14:21 ` [dts][PATCH V1 2/2] test_plans/generic_flow_api_test_plan: " Weiyuan Li
2022-02-09 1:15 ` 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=20220209142106.6753-1-weiyuanx.li@intel.com \
--to=weiyuanx.li@intel.com \
--cc=dts@dpdk.org \
--cc=xueqin.lin@intel.com \
/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).