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 E990AA0528; Fri, 17 Jul 2020 10:48:13 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 9E53B1BF82; Fri, 17 Jul 2020 10:48:13 +0200 (CEST) Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by dpdk.org (Postfix) with ESMTP id 1516C1BF7E for ; Fri, 17 Jul 2020 10:48:11 +0200 (CEST) IronPort-SDR: px2he5Vc5YtBqzfuFIeAb4jF4D5yeUNQt5Jm1u86sn45KIsZp/iPtt+V3RLa+EmACb6hWviQaj L4oSYTizwxkQ== X-IronPort-AV: E=McAfee;i="6000,8403,9684"; a="214276841" X-IronPort-AV: E=Sophos;i="5.75,362,1589266800"; d="scan'208";a="214276841" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 Jul 2020 01:48:10 -0700 IronPort-SDR: yzuRwne+6mMboIAszCzb1D9uIj5+zYCrkaQx71QMDO0FPSvMvYL/CPkSY7pYdZCdi97Q7X1k3D VauO52GcsRBg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.75,362,1589266800"; d="scan'208";a="300505826" Received: from unknown (HELO localhost.localdomain.sh.intel.com) ([10.240.182.150]) by orsmga002.jf.intel.com with ESMTP; 17 Jul 2020 01:48:09 -0700 From: xizhan4x To: dts@dpdk.org Cc: xizhan4x Date: Fri, 17 Jul 2020 16:49:07 +0800 Message-Id: <1594975747-18025-1-git-send-email-xix.zhang@intel.com> X-Mailer: git-send-email 1.8.3.1 Subject: [dts] [PATCH V1] tests/TestSuite_userspace_ethtool:Start ethTool using the cores from the socket on which the nic resides 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" Start ethTool using the cores from the socket on which the nic resides Signed-off-by: xizhan4x --- tests/TestSuite_userspace_ethtool.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/tests/TestSuite_userspace_ethtool.py b/tests/TestSuite_userspace_ethtool.py index 9bb7d55..2b8fa17 100644 --- a/tests/TestSuite_userspace_ethtool.py +++ b/tests/TestSuite_userspace_ethtool.py @@ -63,7 +63,13 @@ class TestUserspaceEthtool(TestCase, IxiaPacketGenerator): self.verify("No such file" not in out, "compilation error 2") path = "./examples/ethtool/ethtool-app/%s/ethtool" % self.target - self.cmd = "%s -c f -n %d" % (path, self.dut.get_memory_channels()) + used_dut_port_pci = self.dut.ports_info[self.ports[0]]['port'].pci + out = self.dut.send_expect("cat /sys/bus/pci/devices/%s/numa_node " % used_dut_port_pci, "# ") + cpu_cores = self.dut.send_expect('lscpu |grep "NUMA node%s CPU(s):"' % out, "# ") + core = re.findall(r"\d+-(\d+)", cpu_cores)[0] + core = int(core) + cores = "%d,%d,%d,%d" % (core - 1, core - 2, core - 3, core - 4) + self.cmd = "%s -l %s -n %d" % (path, cores, self.dut.get_memory_channels()) # pause frame basic configuration self.pause_time = 65535 -- 1.8.3.1