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 9CCC0A054F; Tue, 18 Feb 2020 08:11:55 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 91C2F1C1B4; Tue, 18 Feb 2020 08:11:55 +0100 (CET) Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by dpdk.org (Postfix) with ESMTP id 990E61C10D for ; Tue, 18 Feb 2020 08:11:54 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by fmsmga101.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 17 Feb 2020 23:11:47 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.70,455,1574150400"; d="scan'208";a="435759420" Received: from fmsmsx106.amr.corp.intel.com ([10.18.124.204]) by fmsmga006.fm.intel.com with ESMTP; 17 Feb 2020 23:11:47 -0800 Received: from shsmsx104.ccr.corp.intel.com (10.239.4.70) by FMSMSX106.amr.corp.intel.com (10.18.124.204) with Microsoft SMTP Server (TLS) id 14.3.439.0; Mon, 17 Feb 2020 23:11:46 -0800 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.222]) by SHSMSX104.ccr.corp.intel.com ([169.254.5.5]) with mapi id 14.03.0439.000; Tue, 18 Feb 2020 15:11:43 +0800 From: "Tu, Lijuan" To: "Ma, LihongX" , "dts@dpdk.org" CC: "Ma, LihongX" Thread-Topic: [dts] [PATCH V1] tests/flow_classify_softnic: add ports info according to port num when start testpmd Thread-Index: AQHV5ij9x80YnEqpLUK5oQw/Q+x3gaggiQAA Date: Tue, 18 Feb 2020 07:11:43 +0000 Message-ID: <8CE3E05A3F976642AAB0F4675D0AD20E0BBCB5A4@SHSMSX101.ccr.corp.intel.com> References: <1582009492-46150-1-git-send-email-lihongx.ma@intel.com> In-Reply-To: <1582009492-46150-1-git-send-email-lihongx.ma@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="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dts] [PATCH V1] tests/flow_classify_softnic: add ports info according to port num when start testpmd 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 lihong > Sent: Tuesday, February 18, 2020 3:05 PM > To: dts@dpdk.org > Cc: Ma, LihongX > Subject: [dts] [PATCH V1] tests/flow_classify_softnic: add ports info > according to port num when start testpmd >=20 > Signed-off-by: lihong > --- > 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 f707d1e..f2320be 100644 > --- a/tests/TestSuite_flow_classify_softnic.py > +++ b/tests/TestSuite_flow_classify_softnic.py > @@ -86,7 +86,10 @@ class TestFlowClassifySoftnic(TestCase): > 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 > - eal_params =3D self.dut.create_eal_parameters(cores=3Dself.cores= ) > + ports_info =3D [] > + for i in range(port_num): > + ports_info.append(i) > + eal_params =3D self.dut.create_eal_parameters(cores=3Dself.cores= , > ports=3Dports_info) > 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: > cmd =3D "{0} {1} {2} -s 0x10 -- -i --rxq=3D4 --txq=3D4 --dis= able-rss -- > portmask=3D0x10".format(TESTPMD, VDEV, eal_params) > -- > 2.17.2