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 7FF8FA0487 for ; Wed, 3 Jul 2019 07:52:35 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 7177244C3; Wed, 3 Jul 2019 07:52:35 +0200 (CEST) Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) by dpdk.org (Postfix) with ESMTP id 094CD37AF for ; Wed, 3 Jul 2019 07:52:33 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga007.jf.intel.com ([10.7.209.58]) by orsmga104.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 02 Jul 2019 22:52:33 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.63,446,1557212400"; d="scan'208";a="154650016" Received: from fmsmsx107.amr.corp.intel.com ([10.18.124.205]) by orsmga007.jf.intel.com with ESMTP; 02 Jul 2019 22:52:33 -0700 Received: from shsmsx151.ccr.corp.intel.com (10.239.6.50) by fmsmsx107.amr.corp.intel.com (10.18.124.205) with Microsoft SMTP Server (TLS) id 14.3.439.0; Tue, 2 Jul 2019 22:52:33 -0700 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.134]) by SHSMSX151.ccr.corp.intel.com ([169.254.3.55]) with mapi id 14.03.0439.000; Wed, 3 Jul 2019 13:52:30 +0800 From: "Tu, Lijuan" To: "Xiao, QimaiX" , "dts@dpdk.org" CC: "Xiao, QimaiX" Thread-Topic: [dts] [PATCH V1] add cpu_id for single cpu on socket 0 Thread-Index: AQHVMHfGQzkXvzpDk0GdXLTkmwR3caa4ZgkA Date: Wed, 3 Jul 2019 05:52:29 +0000 Message-ID: <8CE3E05A3F976642AAB0F4675D0AD20E0BAD9277@SHSMSX101.ccr.corp.intel.com> References: <1562032172-122236-1-git-send-email-qimaix.xiao@intel.com> In-Reply-To: <1562032172-122236-1-git-send-email-qimaix.xiao@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.0.600.7 dlp-reaction: no-action x-ctpclassification: CTP_NT x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiNTZhMDc0OTItMDYwNy00MjU3LWJiMGMtOWE2ODlmYjkyYTAzIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjEwLjE4MDQuNDkiLCJUcnVzdGVkTGFiZWxIYXNoIjoiSm1EQll0SEo4SmhoSXlWZklnWlRUVHJjZ2dcL1hJU1FnSUFUNU1GMGVkRVZoQjA0M2pIeDB0TVo0SnFFNEpRcGEifQ== x-originating-ip: [10.239.127.40] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dts] [PATCH V1] add cpu_id for single cpu on socket 0 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 [mailto:dts-bounces@dpdk.org] On Behalf Of xiao,qimai > Sent: Tuesday, July 2, 2019 9:50 AM > To: dts@dpdk.org > Cc: Xiao, QimaiX > Subject: [dts] [PATCH V1] add cpu_id for single cpu on socket 0 >=20 > add cpu_id for env with single cpu on socket 0 >=20 > Signed-off-by: xiao,qimai > --- > tests/TestSuite_flow_classify_softnic.py | 5 ++++- > 1 file changed, 4 insertions(+), 1 deletion(-) >=20 > diff --git a/tests/TestSuite_flow_classify_softnic.py > b/tests/TestSuite_flow_classify_softnic.py > index 88dcc7e..a649a44 100644 > --- a/tests/TestSuite_flow_classify_softnic.py > +++ b/tests/TestSuite_flow_classify_softnic.py > @@ -82,7 +82,10 @@ class TestFlowClassifySoftnic(TestCase): > """ > self.set_ports(filename, port_num) > TESTPMD =3D "./%s/app/testpmd" % self.target > - VDEV =3D "--vdev > 'net_softnic0,firmware=3D./drivers/net/softnic/flow_classify_softnic/%s,c= pu_id > =3D1,conn_port=3D8086'" % filename > + cmd=3D"cat /sys/bus/pci/devices/%s/numa_node"%self.dut_p0_pci > + numa_node =3D int(self.dut.send_expect(cmd, "# ", 60)) > + cpu_id =3D numa_node if numa_node > 0 else 0 > + VDEV =3D "--vdev > 'net_softnic0,firmware=3D./drivers/net/softnic/flow_classify_softnic/%s,c= pu_id > =3D%s,conn_port=3D8086'" % (filename,cpu_id) > if port_num =3D=3D 4: > DUT_PORTS =3D " -w {0} -w {1} -w {2} -w {3} "\ > .format(self.dut_p0_pci, self.dut_p1_pci, self.d= ut_p2_pci, > self.dut_p3_pci) > -- > 2.17.1