test suite reviews and discussions
 help / color / mirror / Atom feed
* [dts] [PATCH 1/2] nics: fix issue when no driver bound to netdev
@ 2016-03-13 12:44 Yong Liu
  2016-03-13 12:44 ` [dts] [PATCH 2/2] conf ports: add pci domain in configuration file Yong Liu
  0 siblings, 1 reply; 2+ messages in thread
From: Yong Liu @ 2016-03-13 12:44 UTC (permalink / raw)
  To: dts; +Cc: Marvin Liu

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-03-13 12:44 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-03-13 12:44 [dts] [PATCH 1/2] nics: fix issue when no driver bound to netdev Yong Liu
2016-03-13 12:44 ` [dts] [PATCH 2/2] conf ports: add pci domain in configuration file Yong Liu

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).