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 D63FFB62 for ; Mon, 29 Aug 2016 08:44:11 +0200 (CEST) Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga102.jf.intel.com with ESMTP; 28 Aug 2016 23:44:10 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.28,595,1464678000"; d="scan'208";a="1032533101" Received: from unknown (HELO dpdk-fedora20.icx.intel.com) ([10.239.254.239]) by fmsmga001.fm.intel.com with ESMTP; 28 Aug 2016 23:44:09 -0700 From: Lijuan Tu To: dts@dpdk.org Cc: Lijuan Tu Date: Mon, 29 Aug 2016 14:39:37 +0800 Message-Id: <1472452777-7049-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: Mon, 29 Aug 2016 06:44:12 -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