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 E0D40A04F2; Fri, 6 Dec 2019 06:21:18 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id C6F871BF95; Fri, 6 Dec 2019 06:21:18 +0100 (CET) Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by dpdk.org (Postfix) with ESMTP id CBE7E1BF92 for ; Fri, 6 Dec 2019 06:21:17 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga105.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 05 Dec 2019 21:21:17 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.69,282,1571727600"; d="scan'208";a="263499688" Received: from fmsmsx107.amr.corp.intel.com ([10.18.124.205]) by FMSMGA003.fm.intel.com with ESMTP; 05 Dec 2019 21:21:17 -0800 Received: from fmsmsx154.amr.corp.intel.com (10.18.116.70) by fmsmsx107.amr.corp.intel.com (10.18.124.205) with Microsoft SMTP Server (TLS) id 14.3.439.0; Thu, 5 Dec 2019 21:21:16 -0800 Received: from shsmsx153.ccr.corp.intel.com (10.239.6.53) by FMSMSX154.amr.corp.intel.com (10.18.116.70) with Microsoft SMTP Server (TLS) id 14.3.439.0; Thu, 5 Dec 2019 21:21:16 -0800 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.19]) by SHSMSX153.ccr.corp.intel.com ([169.254.12.195]) with mapi id 14.03.0439.000; Fri, 6 Dec 2019 13:21:14 +0800 From: "Ma, LihongX" To: "dts@dpdk.org" Thread-Topic: [dts][PATCH V1] framework/dut: fix issue of ports config in eal params Thread-Index: AQHVq/TN9bPBp9azA0uqM8qTf4PuFKeskfNA Date: Fri, 6 Dec 2019 05:21:14 +0000 Message-ID: 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: 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] 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" Tested-by: ma,lihong -----Original Message----- From: Ma, LihongX=20 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 pa= rams Signed-off-by: lihong --- framework/dut.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/framework/dut.py b/framework/dut.py index f26b081..6e4b1e5 100= 644 --- 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 conf= ig['port_options'].keys(): port_option =3D config['port_options'][port] - w_pci_list.append('-w %s,%s' % (self.ports_inf= o[config['ports'].index(port)]['pci'], port_option)) + w_pci_list.append('-w %s,%s' % (port,=20 + port_option)) else: - w_pci_list.append('-w %s' % self.ports_info[co= nfig['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