From: "Ma, LihongX" <lihongx.ma@intel.com>
To: "dts@dpdk.org" <dts@dpdk.org>
Subject: Re: [dts] [PATCH V1] framework/dut: fix issue of ports config in eal params
Date: Fri, 6 Dec 2019 05:21:14 +0000 [thread overview]
Message-ID: <BE1E572D0441E34284F1F8B7AC28F1970BB36E66@SHSMSX101.ccr.corp.intel.com> (raw)
In-Reply-To: <1575582864-29319-1-git-send-email-lihongx.ma@intel.com>
Tested-by: ma,lihong<lihongx.ma@intel.com>
-----Original Message-----
From: Ma, LihongX
Sent: Friday, December 6, 2019 5:54 AM
To: dts@dpdk.org
Cc: Ma, LihongX <lihongx.ma@intel.com>
Subject: [dts][PATCH V1] framework/dut: fix issue of ports config in eal params
Signed-off-by: lihong <lihongx.ma@intel.com>
---
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
next prev parent reply other threads:[~2019-12-06 5:21 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-12-05 21:54 lihong
2019-12-06 5:21 ` Ma, LihongX [this message]
2019-12-17 7:08 ` Tu, Lijuan
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=BE1E572D0441E34284F1F8B7AC28F1970BB36E66@SHSMSX101.ccr.corp.intel.com \
--to=lihongx.ma@intel.com \
--cc=dts@dpdk.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).