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 6DDE538EB for ; Tue, 23 Aug 2016 05:08:48 +0200 (CEST) Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga102.jf.intel.com with ESMTP; 22 Aug 2016 20:08:47 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.28,563,1464678000"; d="scan'208";a="1039957877" Received: from unknown (HELO dpdk-fedora20.icx.intel.com) ([10.239.254.239]) by orsmga002.jf.intel.com with ESMTP; 22 Aug 2016 20:08:46 -0700 From: Lijuan Tu To: dts@dpdk.org Cc: Lijuan Tu Date: Tue, 23 Aug 2016 11:04:19 +0800 Message-Id: <1471921459-23063-1-git-send-email-lijuanx.a.tu@intel.com> X-Mailer: git-send-email 1.9.3 Subject: [dts] [next]net_device: fix nic_pci_num not defined. 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: Tue, 23 Aug 2016 03:08:48 -0000 Signed-off-by: Lijuan Tu --- nics/net_device.py | 1 + 1 file changed, 1 insertion(+) diff --git a/nics/net_device.py b/nics/net_device.py index 897ceb9..2ad950e 100644 --- a/nics/net_device.py +++ b/nics/net_device.py @@ -768,6 +768,7 @@ class NetDevice(object): Bind NIC port to the pci-stub driver on linux. """ new_id = self.pci_id.replace(':', ' ') + nic_pci_num = ':'.join([domain_id, bus_id, devfun_id]) self.__send_expect( "echo %s > /sys/bus/pci/drivers/pci-stub/new_id" % new_id, "# ") self.__send_expect( -- 1.9.3