From: Marvin Liu <yong.liu@intel.com>
To: dts@dpdk.org
Cc: Marvin Liu <yong.liu@intel.com>
Subject: [dts] [PATCH v2] framework crb: add new function for getting pci address by port index
Date: Tue, 25 Jul 2017 23:25:14 -0400 [thread overview]
Message-ID: <1501039514-41988-1-git-send-email-yong.liu@intel.com> (raw)
In-Reply-To: <1501036314-38717-1-git-send-email-yong.liu@intel.com>
Signed-off-by: Marvin Liu <yong.liu@intel.com>
diff --git a/framework/crb.py b/framework/crb.py
index 8fbd5b3..bf07345 100644
--- a/framework/crb.py
+++ b/framework/crb.py
@@ -723,6 +723,12 @@ class Crb(object):
if port_info['pci'] == pci:
return port_info
+ def get_port_pci(self, port_id):
+ """
+ return port pci address by port index
+ """
+ return self.ports_info[port_id]['pci']
+
def enable_promisc(self, intf):
if intf != 'N/A':
self.send_expect("ifconfig %s promisc" % intf, "# ", alt_session=True)
--
1.9.3
prev parent reply other threads:[~2017-07-26 3:27 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-07-26 2:31 [dts] [PATCH v1] framework crb: add function for get pci address Marvin Liu
2017-07-26 3:25 ` Marvin Liu [this message]
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=1501039514-41988-1-git-send-email-yong.liu@intel.com \
--to=yong.liu@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).