From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by dpdk.org (Postfix) with ESMTP id 54152298F for ; Mon, 5 Sep 2016 04:17:23 +0200 (CEST) Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by orsmga105.jf.intel.com with ESMTP; 04 Sep 2016 19:17:22 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.30,284,1470726000"; d="scan'208";a="4623676" Received: from stv-crb-56.sh.intel.com (HELO [10.239.128.116]) ([10.239.128.116]) by fmsmga006.fm.intel.com with ESMTP; 04 Sep 2016 19:17:21 -0700 Message-ID: <57CCD65D.5060209@intel.com> Date: Mon, 05 Sep 2016 10:20:13 +0800 From: "Liu, Yong" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.5.0 MIME-Version: 1.0 To: Lijuan Tu , dts@dpdk.org References: <1472452777-7049-1-git-send-email-lijuanx.a.tu@intel.com> In-Reply-To: <1472452777-7049-1-git-send-email-lijuanx.a.tu@intel.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [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, 05 Sep 2016 02:17:23 -0000 Thanks lijuan. Applied into master and next branch. On 08/29/2016 02:39 PM, Lijuan Tu wrote: > 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(