From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by dpdk.org (Postfix) with ESMTP id 4953F1518 for ; Fri, 2 Sep 2016 03:11:00 +0200 (CEST) Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by fmsmga105.fm.intel.com with ESMTP; 01 Sep 2016 18:10:59 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.30,269,1470726000"; d="scan'208";a="3802636" Received: from fmsmsx107.amr.corp.intel.com ([10.18.124.205]) by fmsmga006.fm.intel.com with ESMTP; 01 Sep 2016 18:10:59 -0700 Received: from fmsmsx119.amr.corp.intel.com (10.18.124.207) by fmsmsx107.amr.corp.intel.com (10.18.124.205) with Microsoft SMTP Server (TLS) id 14.3.248.2; Thu, 1 Sep 2016 18:10:59 -0700 Received: from shsmsx151.ccr.corp.intel.com (10.239.6.50) by FMSMSX119.amr.corp.intel.com (10.18.124.207) with Microsoft SMTP Server (TLS) id 14.3.248.2; Thu, 1 Sep 2016 18:10:58 -0700 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.91]) by SHSMSX151.ccr.corp.intel.com ([169.254.3.250]) with mapi id 14.03.0248.002; Fri, 2 Sep 2016 09:10:56 +0800 From: "Xu, HuilongX" To: "Tu, LijuanX A" , "dts@dpdk.org" CC: "Tu, LijuanX A" Thread-Topic: [dts] [next]net_device: fix nic_pci_num not defined. Thread-Index: AQHSAcDkM3tjX8sx7kuYoDPRaU/pY6BlahFQ Date: Fri, 2 Sep 2016 01:10:56 +0000 Message-ID: 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> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.239.127.40] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 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: Fri, 02 Sep 2016 01:11:00 -0000 Acked-by: huilong xu > -----Original Message----- > From: dts [mailto:dts-bounces@dpdk.org] On Behalf Of Lijuan Tu > Sent: Monday, August 29, 2016 2:40 PM > To: dts@dpdk.org > Cc: Tu, LijuanX A > Subject: [dts] [next]net_device: fix nic_pci_num not defined. >=20 > Signed-off-by: Lijuan Tu > --- > nics/net_device.py | 1 + > 1 file changed, 1 insertion(+) >=20 > 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 =3D self.pci_id.replace(':', ' ') > + nic_pci_num =3D ':'.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