From: Rami Rosen <ramirose@gmail.com>
To: dts@dpdk.org
Cc: Rami Rosen <ramirose@gmail.com>
Subject: [dts] [PATCH] tests/pmdrssreta: change hard coded corelist
Date: Mon, 25 Mar 2019 21:01:34 +0200 [thread overview]
Message-ID: <20190325190134.5611-1-ramirose@gmail.com> (raw)
This patch changes the hard coded corelist to the actual cores
in pmdrssreta.
Following conceptually this patch:
http://mails.dpdk.org/archives/dts/2019-March/005464.html
Signed-off-by: Rami Rosen <ramirose@gmail.com>
---
| 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
--git a/tests/TestSuite_pmdrssreta.py b/tests/TestSuite_pmdrssreta.py
index 7709730..89086c1 100644
--- a/tests/TestSuite_pmdrssreta.py
+++ b/tests/TestSuite_pmdrssreta.py
@@ -172,6 +172,8 @@ class TestPmdrssreta(TestCase):
"""
Run at the start of each test suite.
"""
+ cores = self.dut.get_core_list("all")
+ self.coremask = utils.create_mask(cores)
ports = self.dut.get_ports(self.nic)
self.ports_socket = self.dut.get_numa_id(ports[0])
@@ -242,7 +244,8 @@ class TestPmdrssreta(TestCase):
localPort = self.tester.get_local_port(dutPorts[0])
itf = self.tester.get_interface(localPort)
self.dut.kill_all()
- self.dut.send_expect("./%s/app/testpmd -c fffff -n %d -- -i --coremask=0xffffe --rxq=2 --txq=2" % (self.target, self.dut.get_memory_channels()), "testpmd> ", 120)
+ self.dut.send_expect("./%s/app/testpmd -c %s -n %d -- -i --rxq=2 --txq=2" % (self.target, self.coremask, self.dut.get_memory_channels()), "testpmd> ", 120)
+
self.dut.send_expect("start", "testpmd> ", 120)
out = self.dut.send_expect("show port info all", "testpmd> ", 120)
self.dut.send_expect("quit", "# ", 30)
--
2.19.2
next reply other threads:[~2019-03-25 19:01 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-03-25 19:01 Rami Rosen [this message]
2019-04-03 16:29 ` 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=20190325190134.5611-1-ramirose@gmail.com \
--to=ramirose@gmail.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).