From: Xie wei <weix.xie@intel.com>
To: dts@dpdk.org
Cc: Xie wei <weix.xie@intel.com>
Subject: [dts] [PATCH V1 2/2] nics/net_device:add nics name attribute
Date: Fri, 8 Jan 2021 13:37:54 +0800 [thread overview]
Message-ID: <20210108053754.13590-3-weix.xie@intel.com> (raw)
In-Reply-To: <20210108053754.13590-1-weix.xie@intel.com>
Add an atrribute for getting nic's name.
Signed-off-by: Xie wei <weix.xie@intel.com>
---
nics/net_device.py | 1 +
1 file changed, 1 insertion(+)
diff --git a/nics/net_device.py b/nics/net_device.py
index a08c0da6..bdc9d37d 100644
--- a/nics/net_device.py
+++ b/nics/net_device.py
@@ -62,6 +62,7 @@ class NetDevice(object):
self.pci = domain_id + ':' + bus_id + ':' + devfun_id
self.pci_id = get_pci_id(crb, domain_id, bus_id, devfun_id)
self.default_driver = settings.get_nic_driver(self.pci_id)
+ self.name = settings.get_nic_name(self.pci_id)
if self.nic_is_pf():
self.default_vf_driver = ''
--
2.17.1
next prev parent reply other threads:[~2021-01-08 5:36 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-01-08 5:37 [dts] [PATCH V1 0/2] replace i40evf with iavf Xie wei
2021-01-08 5:37 ` [dts] [PATCH V1 1/2] framework/project_dpdk:replace i40evf with iavf for NIC X722 Xie wei
2021-01-13 6:43 ` Tu, Lijuan
2021-01-13 8:14 ` Tu, Lijuan
2021-01-08 5:37 ` Xie wei [this message]
2021-01-08 5:40 ` [dts] [PATCH V1 0/2] replace i40evf with iavf Xie, WeiX
2021-01-08 6:43 ` Zhao, HaiyangX
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=20210108053754.13590-3-weix.xie@intel.com \
--to=weix.xie@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).