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 E95F0A04FA; Tue, 17 Dec 2019 08:08:32 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id D6CCB1BE9E; Tue, 17 Dec 2019 08:08:32 +0100 (CET) Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by dpdk.org (Postfix) with ESMTP id BAA991BE9D for ; Tue, 17 Dec 2019 08:08:31 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga004.jf.intel.com ([10.7.209.38]) by orsmga102.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 16 Dec 2019 23:08:30 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.69,324,1571727600"; d="scan'208";a="365283344" Received: from fmsmsx107.amr.corp.intel.com ([10.18.124.205]) by orsmga004.jf.intel.com with ESMTP; 16 Dec 2019 23:08:30 -0800 Received: from fmsmsx153.amr.corp.intel.com (10.18.125.6) by fmsmsx107.amr.corp.intel.com (10.18.124.205) with Microsoft SMTP Server (TLS) id 14.3.439.0; Mon, 16 Dec 2019 23:08:30 -0800 Received: from shsmsx152.ccr.corp.intel.com (10.239.6.52) by FMSMSX153.amr.corp.intel.com (10.18.125.6) with Microsoft SMTP Server (TLS) id 14.3.439.0; Mon, 16 Dec 2019 23:08:30 -0800 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.19]) by SHSMSX152.ccr.corp.intel.com ([169.254.6.222]) with mapi id 14.03.0439.000; Tue, 17 Dec 2019 15:08:28 +0800 From: "Tu, Lijuan" To: "Ma, LihongX" , "dts@dpdk.org" CC: "Ma, LihongX" Thread-Topic: [dts] [PATCH V1] framework/dut: fix issue of ports config in eal params Thread-Index: AQHVq/Tbm+sZBrgE4U6VD2KyWNeItae9+Zuw Date: Tue, 17 Dec 2019 07:08:27 +0000 Message-ID: <8CE3E05A3F976642AAB0F4675D0AD20E0BB82851@SHSMSX101.ccr.corp.intel.com> References: <1575582864-29319-1-git-send-email-lihongx.ma@intel.com> In-Reply-To: <1575582864-29319-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-ctpclassification: CTP_NT x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiMGE3ZjdlZTEtYjkzOS00ZjZmLTlmMzItYzQzYTgyY2EyNTEyIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjEwLjE4MDQuNDkiLCJUcnVzdGVkTGFiZWxIYXNoIjoiejVUbEJweFYyanpoQ1dpc1hNdU1HWkN0SHpwRHluXC9QejZGMkJGQ3h1OVwvNDJQbHkzNk5KR1IzSUsxdXZwXC9KRiJ9 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] framework/dut: fix issue of ports config in eal params 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: Friday, December 6, 2019 5:54 AM > To: dts@dpdk.org > Cc: Ma, LihongX > Subject: [dts] [PATCH V1] framework/dut: fix issue of ports config in eal > params >=20 > Signed-off-by: lihong > --- > framework/dut.py | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) >=20 > diff --git a/framework/dut.py b/framework/dut.py index f26b081..6e4b1e5 > 100644 > --- a/framework/dut.py > +++ b/framework/dut.py > @@ -143,9 +143,9 @@ class Dut(Crb): > else: > if config.has_key('port_options') and port in > config['port_options'].keys(): > port_option =3D config['port_options'][port] > - w_pci_list.append('-w %s,%s' % > (self.ports_info[config['ports'].index(port)]['pci'], port_option)) > + w_pci_list.append('-w %s,%s' % (port, > + port_option)) > else: > - w_pci_list.append('-w %s' % > self.ports_info[config['ports'].index(port)]['pci']) > + w_pci_list.append('-w %s' % port) > w_pci_str =3D ' '.join(w_pci_list) >=20 > # deal with black ports > -- > 2.7.4