test suite reviews and discussions
 help / color / mirror / Atom feed
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
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


  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

test suite reviews and discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror https://inbox.dpdk.org/dts/0 dts/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 dts dts/ https://inbox.dpdk.org/dts \
		dts@dpdk.org
	public-inbox-index dts

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://inbox.dpdk.org/inbox.dpdk.dts


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git