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 AC79BA04F2; Fri, 6 Dec 2019 06:19:59 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 730651BF95; Fri, 6 Dec 2019 06:19:59 +0100 (CET) Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by dpdk.org (Postfix) with ESMTP id 4AF111BF92 for ; Fri, 6 Dec 2019 06:19:58 +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 fmsmga102.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 05 Dec 2019 21:19:56 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.69,282,1571727600"; d="scan'208";a="263499451" Received: from dpdk-lihong-ub1604.sh.intel.com ([10.67.118.203]) by FMSMGA003.fm.intel.com with ESMTP; 05 Dec 2019 21:19:56 -0800 From: lihong To: dts@dpdk.org Cc: lihong Date: Fri, 6 Dec 2019 05:54:24 +0800 Message-Id: <1575582864-29319-1-git-send-email-lihongx.ma@intel.com> X-Mailer: git-send-email 2.7.4 Subject: [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" 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 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 = 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 = ' '.join(w_pci_list) # deal with black ports -- 2.7.4