From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id B8B67A0350; Tue, 23 Jun 2020 10:35:14 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id A4E321D584; Tue, 23 Jun 2020 10:35:14 +0200 (CEST) Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by dpdk.org (Postfix) with ESMTP id 6DA071D57F for ; Tue, 23 Jun 2020 10:35:13 +0200 (CEST) IronPort-SDR: Wy3w/2iGGmuq9itzrZnplHM5qLX0+wLquI4Z5TQmZYgQJ0qJzPu/rgCC0PuQDD0D9xn6Y8A3sO RMvjviBG+DWQ== X-IronPort-AV: E=McAfee;i="6000,8403,9660"; a="228673563" X-IronPort-AV: E=Sophos;i="5.75,270,1589266800"; d="scan'208";a="228673563" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Jun 2020 01:35:12 -0700 IronPort-SDR: UiFAP7oKuAfG0456zcvtiYucQRrd9sz4BQEtJuTWkQjWowDw781KXoAKVR1rAi8H6FmSDY4I6G Pva+KYzl8JYA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.75,270,1589266800"; d="scan'208";a="353737578" Received: from unknown (HELO xqm-virtio_tester.localdomain) ([10.240.183.52]) by orsmga001.jf.intel.com with ESMTP; 23 Jun 2020 01:35:11 -0700 From: Xiao Qimai To: dts@dpdk.org Cc: Xiao Qimai Date: Tue, 23 Jun 2020 16:27:08 +0800 Message-Id: <1592900828-288902-1-git-send-email-qimaix.xiao@intel.com> X-Mailer: git-send-email 1.8.3.1 Subject: [dts] [PATCH V1]perf_vm2vm_virtio_net_perf: use same socket cores with nic port numa id 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: , Errors-To: dts-bounces@dpdk.org Sender: "dts" Signed-off-by: Xiao Qimai --- tests/TestSuite_perf_vm2vm_virtio_net_perf.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/tests/TestSuite_perf_vm2vm_virtio_net_perf.py b/tests/TestSuite_perf_vm2vm_virtio_net_perf.py index 532cdf7..bc9cb3a 100644 --- a/tests/TestSuite_perf_vm2vm_virtio_net_perf.py +++ b/tests/TestSuite_perf_vm2vm_virtio_net_perf.py @@ -54,8 +54,11 @@ from copy import deepcopy class TestPerfVM2VMVirtioNetPerf(TestCase): def set_up_all(self): - core_config = "1S/4C/1T" - self.cores_list = self.dut.get_core_list(core_config) + self.dut_ports = self.dut.get_ports() + self.verify(len(self.dut_ports) >= 1, "Insufficient ports for testing") + # get core mask + self.ports_socket = self.dut.get_numa_id(self.dut_ports[0]) + self.cores_list = self.dut.get_core_list('all', socket=self.ports_socket) self.verify(len(self.cores_list) >= 4, "There has not enough cores to test this suite %s" % self.suite_name) -- 1.8.3.1