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 F070DA0518; Fri, 24 Jul 2020 04:27:34 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id E61601D641; Fri, 24 Jul 2020 04:27:34 +0200 (CEST) Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by dpdk.org (Postfix) with ESMTP id 5B7C81D63E for ; Fri, 24 Jul 2020 04:27:33 +0200 (CEST) IronPort-SDR: D+aXZWSoGkeLRtgmwOmFSeUUYMZ47vD131NAfgyD5ekX8iEVzEAyP9/OyhBPmXRCr3H8YcF9UY iy9wkHZ/6A/w== X-IronPort-AV: E=McAfee;i="6000,8403,9691"; a="168781126" X-IronPort-AV: E=Sophos;i="5.75,389,1589266800"; d="scan'208";a="168781126" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga007.jf.intel.com ([10.7.209.58]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Jul 2020 19:27:32 -0700 IronPort-SDR: oFqNByqsKYJ34t2YETsCnSLzthxi3PbptugtWoxOWqFn6JMRnUtmeh/ODlTHB8cNkVuVab0HjL AorFhDFlkjEQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.75,389,1589266800"; d="scan'208";a="328775622" Received: from fmsmsx108.amr.corp.intel.com ([10.18.124.206]) by orsmga007.jf.intel.com with ESMTP; 23 Jul 2020 19:27:32 -0700 Received: from fmsmsx157.amr.corp.intel.com (10.18.116.73) by FMSMSX108.amr.corp.intel.com (10.18.124.206) with Microsoft SMTP Server (TLS) id 14.3.439.0; Thu, 23 Jul 2020 19:27:31 -0700 Received: from shsmsx104.ccr.corp.intel.com (10.239.4.70) by FMSMSX157.amr.corp.intel.com (10.18.116.73) with Microsoft SMTP Server (TLS) id 14.3.439.0; Thu, 23 Jul 2020 19:27:31 -0700 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.22]) by SHSMSX104.ccr.corp.intel.com ([169.254.5.135]) with mapi id 14.03.0439.000; Fri, 24 Jul 2020 10:27:28 +0800 From: "Tu, Lijuan" To: "Zhang, XiX" , "dts@dpdk.org" CC: "Zhang, XiX" Thread-Topic: [dts] [PATCH V1] tests/TestSuite_userspace_ethtool:Start ethTool using the cores from the socket on which the nic resides Thread-Index: AQHWXBcx+R41QLty4EqTIFcsNBUUiqkWC75w Date: Fri, 24 Jul 2020 02:27:27 +0000 Message-ID: <8CE3E05A3F976642AAB0F4675D0AD20E0BC83FD2@SHSMSX101.ccr.corp.intel.com> References: <1594975747-18025-1-git-send-email-xix.zhang@intel.com> In-Reply-To: <1594975747-18025-1-git-send-email-xix.zhang@intel.com> Accept-Language: zh-CN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-version: 11.2.0.6 dlp-reaction: no-action x-originating-ip: [10.239.127.40] Content-Type: text/plain; charset="iso-2022-jp" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [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" Applied, thanks > -----Original Message----- > From: dts On Behalf Of xizhan4x > Sent: 2020=1B$BG/=1B(B7=1B$B7n=1B(B17=1B$BF|=1B(B 16:49 > To: dts@dpdk.org > Cc: Zhang, XiX > Subject: [dts] [PATCH V1] tests/TestSuite_userspace_ethtool:Start ethTool= using > the cores from the socket on which the nic resides >=20 > Start ethTool using the cores from the socket on which the nic resides >=20 > Signed-off-by: xizhan4x > --- > tests/TestSuite_userspace_ethtool.py | 8 +++++++- > 1 file changed, 7 insertions(+), 1 deletion(-) >=20 > 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") >=20 > path =3D "./examples/ethtool/ethtool-app/%s/ethtool" % self.targ= et > - self.cmd =3D "%s -c f -n %d" % (path, self.dut.get_memory_channe= ls()) > + used_dut_port_pci =3D self.dut.ports_info[self.ports[0]]['port']= .pci > + out =3D self.dut.send_expect("cat /sys/bus/pci/devices/%s/numa_n= ode " % > used_dut_port_pci, "# ") > + cpu_cores =3D self.dut.send_expect('lscpu |grep "NUMA node%s CPU= (s):"' % > out, "# ") > + core =3D re.findall(r"\d+-(\d+)", cpu_cores)[0] > + core =3D int(core) > + cores =3D "%d,%d,%d,%d" % (core - 1, core - 2, core - 3, core - = 4) > + self.cmd =3D "%s -l %s -n %d" % (path, cores, > self.dut.get_memory_channels()) >=20 > # pause frame basic configuration > self.pause_time =3D 65535 > -- > 1.8.3.1