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 37070A0487 for ; Tue, 2 Jul 2019 04:11:32 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 11D97CFA6; Tue, 2 Jul 2019 04:11:32 +0200 (CEST) Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by dpdk.org (Postfix) with ESMTP id BB28B4C8F for ; Tue, 2 Jul 2019 04:11:29 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by orsmga106.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 01 Jul 2019 19:11:28 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.63,441,1557212400"; d="scan'208";a="163867438" Received: from fmsmsx104.amr.corp.intel.com ([10.18.124.202]) by fmsmga008.fm.intel.com with ESMTP; 01 Jul 2019 19:11:28 -0700 Received: from fmsmsx124.amr.corp.intel.com (10.18.125.39) by fmsmsx104.amr.corp.intel.com (10.18.124.202) with Microsoft SMTP Server (TLS) id 14.3.439.0; Mon, 1 Jul 2019 19:11:28 -0700 Received: from shsmsx151.ccr.corp.intel.com (10.239.6.50) by fmsmsx124.amr.corp.intel.com (10.18.125.39) with Microsoft SMTP Server (TLS) id 14.3.439.0; Mon, 1 Jul 2019 19:11:28 -0700 Received: from shsmsx106.ccr.corp.intel.com ([169.254.10.240]) by SHSMSX151.ccr.corp.intel.com ([169.254.3.55]) with mapi id 14.03.0439.000; Tue, 2 Jul 2019 10:11:25 +0800 From: "Yao, BingX Y" 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: AQHVMHfGiHSl1i+PPUeUvH0N3gT/nqa2lXyg Date: Tue, 2 Jul 2019 02:11:25 +0000 Message-ID: <95BCD24840F32441BEA74E0F8A31839E058F385F@SHSMSX106.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: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: 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" Tested-by: Yao, BingX Y -----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 add cpu_id for env with single cpu on socket 0 Signed-off-by: xiao,qimai --- tests/TestSuite_flow_classify_softnic.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/TestSuite_flow_classify_softnic.py b/tests/TestSuite_flo= w_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/fl= ow_classify_softnic/%s,cpu_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/fl= ow_classify_softnic/%s,cpu_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.dut= _p2_pci, self.dut_p3_pci) --=20 2.17.1