* [dts] fix reset_queues case failed, when nic on sock 1
@ 2015-08-03 7:26 huilong,xu
2015-08-04 5:03 ` Liu, Yong
0 siblings, 1 reply; 2+ messages in thread
From: huilong,xu @ 2015-08-03 7:26 UTC (permalink / raw)
To: dts
From: huilong xu <huilongx.xu@intel.com>
Signed-off-by: huilong xu <huilongx.xu@intel.com>
---
tests/TestSuite_shutdown_api.py | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/tests/TestSuite_shutdown_api.py b/tests/TestSuite_shutdown_api.py
index 482091a..92ab67f 100644
--- a/tests/TestSuite_shutdown_api.py
+++ b/tests/TestSuite_shutdown_api.py
@@ -249,14 +249,16 @@ class TestShutdownApi(TestCase):
self.tester.get_interface(self.tester.get_local_port(self.ports[1]))
]
#blackList = self.dut.create_blacklist_string(self.target, self.nic)
+ testcorelist = self.dut.get_core_list("1S/8C/1T", socket=self.ports_socket)
- self.pmdout.start_testpmd("1S/8C/1T", "--portmask=%s" % dts.create_mask([self.ports[0], self.ports[1]]), socket=self.ports_socket)
+ self.pmdout.start_testpmd(testcorelist, "--portmask=%s" % dts.create_mask([self.ports[0], self.ports[1]]), socket=self.ports_socket)
+ fwdcoremask = dts.create_mask(testcorelist[-3:])
self.dut.send_expect("port stop all", "testpmd> ", 100)
self.dut.send_expect("port config all rxq 2", "testpmd> ")
self.dut.send_expect("port config all txq 2", "testpmd> ")
#self.dut.send_expect("set coremask 0x1e", "testpmd> ")
- self.dut.send_expect("set coremask 0xe0", "testpmd> ")
+ self.dut.send_expect("set coremask %s" % fwdcoremask, "testpmd> ")
self.dut.send_expect("set fwd mac", "testpmd>")
self.dut.send_expect("port start all", "testpmd> ", 100)
out = self.dut.send_expect("show config rxtx", "testpmd> ")
--
1.7.4.4
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [dts] fix reset_queues case failed, when nic on sock 1
2015-08-03 7:26 [dts] fix reset_queues case failed, when nic on sock 1 huilong,xu
@ 2015-08-04 5:03 ` Liu, Yong
0 siblings, 0 replies; 2+ messages in thread
From: Liu, Yong @ 2015-08-04 5:03 UTC (permalink / raw)
To: Xu, HuilongX, dts
Applied in 1.1 branch. Thanks.
> -----Original Message-----
> From: dts [mailto:dts-bounces@dpdk.org] On Behalf Of huilong,xu
> Sent: Monday, August 03, 2015 3:27 PM
> To: dts@dpdk.org
> Subject: [dts] fix reset_queues case failed, when nic on sock 1
>
> From: huilong xu <huilongx.xu@intel.com>
>
>
> Signed-off-by: huilong xu <huilongx.xu@intel.com>
> ---
> tests/TestSuite_shutdown_api.py | 6 ++++--
> 1 files changed, 4 insertions(+), 2 deletions(-)
>
> diff --git a/tests/TestSuite_shutdown_api.py
> b/tests/TestSuite_shutdown_api.py
> index 482091a..92ab67f 100644
> --- a/tests/TestSuite_shutdown_api.py
> +++ b/tests/TestSuite_shutdown_api.py
> @@ -249,14 +249,16 @@ class TestShutdownApi(TestCase):
>
> self.tester.get_interface(self.tester.get_local_port(self.ports[1]))
> ]
> #blackList = self.dut.create_blacklist_string(self.target,
> self.nic)
> + testcorelist = self.dut.get_core_list("1S/8C/1T",
> socket=self.ports_socket)
>
> - self.pmdout.start_testpmd("1S/8C/1T", "--portmask=%s" %
> dts.create_mask([self.ports[0], self.ports[1]]), socket=self.ports_socket)
> + self.pmdout.start_testpmd(testcorelist, "--portmask=%s" %
> dts.create_mask([self.ports[0], self.ports[1]]), socket=self.ports_socket)
> + fwdcoremask = dts.create_mask(testcorelist[-3:])
>
> self.dut.send_expect("port stop all", "testpmd> ", 100)
> self.dut.send_expect("port config all rxq 2", "testpmd> ")
> self.dut.send_expect("port config all txq 2", "testpmd> ")
> #self.dut.send_expect("set coremask 0x1e", "testpmd> ")
> - self.dut.send_expect("set coremask 0xe0", "testpmd> ")
> + self.dut.send_expect("set coremask %s" % fwdcoremask, "testpmd> ")
> self.dut.send_expect("set fwd mac", "testpmd>")
> self.dut.send_expect("port start all", "testpmd> ", 100)
> out = self.dut.send_expect("show config rxtx", "testpmd> ")
> --
> 1.7.4.4
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-08-04 5:03 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-08-03 7:26 [dts] fix reset_queues case failed, when nic on sock 1 huilong,xu
2015-08-04 5:03 ` Liu, Yong
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).