From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by dpdk.org (Postfix) with ESMTP id 6674EE07 for ; Sun, 13 Mar 2016 13:44:35 +0100 (CET) Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga102.jf.intel.com with ESMTP; 13 Mar 2016 05:44:34 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.24,331,1455004800"; d="scan'208";a="668697263" Received: from shvmail01.sh.intel.com ([10.239.29.42]) by FMSMGA003.fm.intel.com with ESMTP; 13 Mar 2016 05:44:34 -0700 Received: from shecgisg003.sh.intel.com (shecgisg003.sh.intel.com [10.239.29.90]) by shvmail01.sh.intel.com with ESMTP id u2DCiWmH024940; Sun, 13 Mar 2016 20:44:32 +0800 Received: from shecgisg003.sh.intel.com (localhost [127.0.0.1]) by shecgisg003.sh.intel.com (8.13.6/8.13.6/SuSE Linux 0.8) with ESMTP id u2DCiT46021027; Sun, 13 Mar 2016 20:44:31 +0800 Received: (from yliu84x@localhost) by shecgisg003.sh.intel.com (8.13.6/8.13.6/Submit) id u2DCiTxf021023; Sun, 13 Mar 2016 20:44:29 +0800 From: Yong Liu To: dts@dpdk.org Cc: Marvin Liu Date: Sun, 13 Mar 2016 20:44:27 +0800 Message-Id: <1457873068-20991-1-git-send-email-yong.liu@intel.com> X-Mailer: git-send-email 1.7.4.1 Subject: [dts] [PATCH 1/2] nics: fix issue when no driver bound to netdev X-BeenThere: dts@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: test suite reviews and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 13 Mar 2016 12:44:35 -0000 Signed-off-by: Marvin Liu 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