test suite reviews and discussions
 help / color / mirror / Atom feed
* [dts] [PATCH]tests vf_rss: fix socket get error.
@ 2017-02-22  8:42 Lijuan Tu
  2017-02-23  5:07 ` Liu, Yong
  0 siblings, 1 reply; 2+ messages in thread
From: Lijuan Tu @ 2017-02-22  8:42 UTC (permalink / raw)
  To: dts; +Cc: Lijuan Tu

vf socket should get from VM(guest), but not from host.

Signed-off-by: Lijuan Tu <lijuanx.a.tu@intel.com>
---
 tests/TestSuite_vf_rss.py | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [dts] [PATCH]tests vf_rss: fix socket get error.
  2017-02-22  8:42 [dts] [PATCH]tests vf_rss: fix socket get error Lijuan Tu
@ 2017-02-23  5:07 ` Liu, Yong
  0 siblings, 0 replies; 2+ messages in thread
From: Liu, Yong @ 2017-02-23  5:07 UTC (permalink / raw)
  To: Lijuan Tu, dts

Thanks, applied.

On 02/22/2017 04:42 PM, Lijuan Tu wrote:
> vf socket should get from VM(guest), but not from host.
>
> Signed-off-by: Lijuan Tu<lijuanx.a.tu@intel.com>

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-02-23  5:14 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-02-22  8:42 [dts] [PATCH]tests vf_rss: fix socket get error Lijuan Tu
2017-02-23  5:07 ` 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).