From: Lijuan Tu <lijuanx.a.tu@intel.com>
To: dts@dpdk.org
Cc: Lijuan Tu <lijuanx.a.tu@intel.com>
Subject: [dts] [PATCH]tests vf_rss: fix socket get error.
Date: Wed, 22 Feb 2017 16:42:54 +0800 [thread overview]
Message-ID: <1487752974-32995-1-git-send-email-lijuanx.a.tu@intel.com> (raw)
vf socket should get from VM(guest), but not from host.
Signed-off-by: Lijuan Tu <lijuanx.a.tu@intel.com>
---
| 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
--git a/tests/TestSuite_vf_rss.py b/tests/TestSuite_vf_rss.py
index 34f25cb..a08a79d 100644
--- a/tests/TestSuite_vf_rss.py
+++ b/tests/TestSuite_vf_rss.py
@@ -216,7 +216,6 @@ class TestVfRss(TestCase):
self.nic in ["niantic", "fortville_eagle", "fortville_spirit", "fortville_spirit_single"],
"NIC Unsupported: " + str(self.nic))
self.dut_ports = self.dut.get_ports(self.nic)
- self.ports_socket = self.dut.get_numa_id(self.dut_ports[0])
self.verify(len(self.dut_ports) >= 1, "Not enough ports available")
self.vm0 = None
@@ -300,6 +299,7 @@ class TestVfRss(TestCase):
vm0dutPorts = self.vm_dut_0.get_ports('any')
localPort = self.tester.get_local_port(vm0dutPorts[0])
itf = self.tester.get_interface(localPort)
+ self.vm0_ports_socket = self.vm_dut_0.get_numa_id(vm0dutPorts[0])
iptypes = ['IPV4']
self.vm_dut_0.kill_all()
@@ -312,7 +312,7 @@ class TestVfRss(TestCase):
for queue in testQueues:
self.vm0_testpmd.start_testpmd(
- "all", "--rxq=%d --txq=%d %s" % (queue, queue, eal_param), socket=self.ports_socket)
+ "all", "--rxq=%d --txq=%d %s" % (queue, queue, eal_param), socket=self.vm0_ports_socket)
for iptype in iptypes:
self.vm_dut_0.send_expect("set verbose 8", "testpmd> ")
@@ -339,6 +339,7 @@ class TestVfRss(TestCase):
vm0dutPorts = self.vm_dut_0.get_ports('any')
localPort = self.tester.get_local_port(vm0dutPorts[0])
itf = self.tester.get_interface(localPort)
+ self.vm0_ports_socket = self.vm_dut_0.get_numa_id(vm0dutPorts[0])
iptypes = {'ipv4-sctp':'ip',
'ipv4-other':'ip',
'ipv4-udp':'udp',
@@ -361,7 +362,7 @@ class TestVfRss(TestCase):
for queue in testQueues:
self.vm0_testpmd.start_testpmd(
- "all", "--rxq=%d --txq=%d %s" % (queue, queue, eal_param), socket=self.ports_socket)
+ "all", "--rxq=%d --txq=%d %s" % (queue, queue, eal_param), socket=self.vm0_ports_socket)
for iptype,rsstype in iptypes.items():
self.vm_dut_0.send_expect("set verbose 8", "testpmd> ")
--
1.9.3
next reply other threads:[~2017-02-22 8:41 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-02-22 8:42 Lijuan Tu [this message]
2017-02-23 5:07 ` Liu, Yong
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=1487752974-32995-1-git-send-email-lijuanx.a.tu@intel.com \
--to=lijuanx.a.tu@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).