From: Yong Liu <yong.liu@intel.com>
To: dts@dpdk.org
Cc: Marvin Liu <yong.liu@intel.com>
Subject: [dts] [PATCH 1/2] nics: fix issue when no driver bound to netdev
Date: Sun, 13 Mar 2016 20:44:27 +0800 [thread overview]
Message-ID: <1457873068-20991-1-git-send-email-yong.liu@intel.com> (raw)
Signed-off-by: Marvin Liu <yong.liu@intel.com>
diff --git a/nics/net_device.py b/nics/net_device.py
index 99e44ab..8a1f621 100644
--- a/nics/net_device.py
+++ b/nics/net_device.py
@@ -65,6 +65,9 @@ class NetDevice(object):
if self.nic_is_pf():
self.default_vf_driver = ''
+
+ self.intf_name = 'N/A'
+ self.intf2_name = None
self.get_interface_name()
self.socket = self.get_nic_socket()
@@ -150,7 +153,6 @@ class NetDevice(object):
self.intf_name = 'N/A'
else:
self.intf_name = out
- self.intf2_name = None
# not a complete fix for CX3.
if len(out.split()) > 1 and self.default_driver == 'mlx4_core':
--
1.9.3
next reply other threads:[~2016-03-13 12:44 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-03-13 12:44 Yong Liu [this message]
2016-03-13 12:44 ` [dts] [PATCH 2/2] conf ports: add pci domain in configuration file Yong Liu
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=1457873068-20991-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).