From: lingwei <weix.ling@intel.com>
To: dts@dpdk.org
Cc: lingwei <weix.ling@intel.com>
Subject: [dts] [PATCH V5 5/5] tests/TestSuite_vmdq:use API to set dpdk config when use meson
Date: Fri, 11 Sep 2020 15:27:24 +0000 [thread overview]
Message-ID: <20200911152724.29030-6-weix.ling@intel.com> (raw)
In-Reply-To: <20200911152724.29030-1-weix.ling@intel.com>
use API to set dpdk config when use meson
Signed-off-by: lingwei <weix.ling@intel.com>
---
tests/TestSuite_vmdq.py | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/tests/TestSuite_vmdq.py b/tests/TestSuite_vmdq.py
index 8e721e5..c80de64 100644
--- a/tests/TestSuite_vmdq.py
+++ b/tests/TestSuite_vmdq.py
@@ -28,6 +28,7 @@ class TestVmdq(TestCase):
self.ports_socket = self.dut.get_numa_id(self.dut_ports[0])
self.dut.send_expect("sed -i 's/CONFIG_RTE_MAX_QUEUES_PER_PORT=256/CONFIG_RTE_MAX_QUEUES_PER_PORT=1024/' ./config/common_base", "# ", 5)
+ self.dut.set_build_options({'RTE_MAX_QUEUES_PER_PORT': 1024})
self.dut.build_install_dpdk(self.target)
# Update the max queue per port for Fortville.
self.dut.send_expect("sed -i 's/define MAX_QUEUES 128/define MAX_QUEUES 1024/' ./examples/vmdq/main.c", "#", 5)
@@ -133,7 +134,8 @@ class TestVmdq(TestCase):
def get_vmdq_stats(self):
vmdq_session = self.dut.new_session()
- vmdq_session.send_expect("kill -s SIGHUP `pgrep -fl vmdq_app | awk '{print $1}'`", "#", 20)
+ app_name = self.dut.apps_name['vmdq_dcb'].split('/')[-1]
+ vmdq_session.send_expect("kill -s SIGHUP `pgrep -fl %s | awk '{print $1}'`" % app_name, "#", 20)
out = self.dut.get_session_output()
self.logger.info(out)
vmdq_session.close()
@@ -242,4 +244,5 @@ class TestVmdq(TestCase):
self.dut.send_expect(
"sed -i 's/CONFIG_RTE_MAX_QUEUES_PER_PORT=1024/CONFIG_RTE_MAX_QUEUES_PER_PORT=256/' ./config/common_base",
"# ", 5)
+ self.dut.set_build_options({'RTE_MAX_QUEUES_PER_PORT': 256})
self.dut.build_install_dpdk(self.target)
--
2.17.1
prev parent reply other threads:[~2020-09-11 7:36 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-09-11 15:27 [dts] [PATCH V2 0/5] use " lingwei
2020-09-11 7:39 ` Ling, WeiX
2020-09-11 15:27 ` [dts] [PATCH V2 1/5] tests/l3fwd_base:use " lingwei
2020-09-11 15:27 ` [dts] [PATCH V2 2/5] tests/TestSuite_af_xdp_2:use " lingwei
2020-09-11 15:27 ` [dts] [PATCH V2 3/5] tests/TestSuite_nic_single_core_perf.py:use " lingwei
2020-09-11 15:27 ` [dts] [PATCH V2 4/5] tests/TestSuite_vmdq_dcb:use " lingwei
2020-09-11 15:27 ` lingwei [this message]
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=20200911152724.29030-6-weix.ling@intel.com \
--to=weix.ling@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).