From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by dpdk.org (Postfix) with ESMTP id 5A9EA4A65 for ; Wed, 22 Feb 2017 09:41:49 +0100 (CET) Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga102.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 22 Feb 2017 00:41:48 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.35,193,1484035200"; d="scan'208";a="1133260248" Received: from unknown (HELO dpdk-fedora20.icx.intel.com) ([10.240.176.135]) by fmsmga002.fm.intel.com with ESMTP; 22 Feb 2017 00:41:47 -0800 From: Lijuan Tu To: dts@dpdk.org Cc: Lijuan Tu Date: Wed, 22 Feb 2017 16:42:54 +0800 Message-Id: <1487752974-32995-1-git-send-email-lijuanx.a.tu@intel.com> X-Mailer: git-send-email 1.9.3 Subject: [dts] [PATCH]tests vf_rss: fix socket get error. X-BeenThere: dts@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: test suite reviews and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 22 Feb 2017 08:41:50 -0000 vf socket should get from VM(guest), but not from host. Signed-off-by: Lijuan Tu --- 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