From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by dpdk.org (Postfix) with ESMTP id 534E737AA for ; Fri, 2 Sep 2016 04:25:12 +0200 (CEST) Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga101.fm.intel.com with ESMTP; 01 Sep 2016 19:25:11 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.30,269,1470726000"; d="scan'208";a="874315043" Received: from fmsmsx104.amr.corp.intel.com ([10.18.124.202]) by orsmga003.jf.intel.com with ESMTP; 01 Sep 2016 19:25:11 -0700 Received: from fmsmsx151.amr.corp.intel.com (10.18.125.4) by fmsmsx104.amr.corp.intel.com (10.18.124.202) with Microsoft SMTP Server (TLS) id 14.3.248.2; Thu, 1 Sep 2016 19:25:10 -0700 Received: from shsmsx104.ccr.corp.intel.com (10.239.4.70) by FMSMSX151.amr.corp.intel.com (10.18.125.4) with Microsoft SMTP Server (TLS) id 14.3.248.2; Thu, 1 Sep 2016 19:25:04 -0700 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.91]) by SHSMSX104.ccr.corp.intel.com ([169.254.5.174]) with mapi id 14.03.0248.002; Fri, 2 Sep 2016 10:25:02 +0800 From: "Xu, HuilongX" To: "Xu, GangX" , "dts@dpdk.org" CC: "Xu, GangX" Thread-Topic: [dts] [PATCH V2] modify DTS stop_ports error on freesbd V2 Thread-Index: AQHSBL7FOspuBM3XIUKB1vUe2GLJu6BleM8w Date: Fri, 2 Sep 2016 02:25:01 +0000 Message-ID: References: <1472781764-15708-1-git-send-email-gangx.xu@intel.com> In-Reply-To: <1472781764-15708-1-git-send-email-gangx.xu@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] [PATCH V2] modify DTS stop_ports error on freesbd V2 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 02:25:12 -0000 Acked-by: huilongx xu > -----Original Message----- > From: dts [mailto:dts-bounces@dpdk.org] On Behalf Of xu,gang > Sent: Friday, September 02, 2016 10:03 AM > To: dts@dpdk.org > Cc: Xu, GangX > Subject: [dts] [PATCH V2] modify DTS stop_ports error on freesbd V2 >=20 > Signed-off-by: xu,gang > --- > framework/dut.py | 6 +++++- > 1 file changed, 5 insertions(+), 1 deletion(-) >=20 > diff --git a/framework/dut.py b/framework/dut.py > index 2f4e53a..c688801 100644 > --- a/framework/dut.py > +++ b/framework/dut.py > @@ -237,10 +237,14 @@ class Dut(Crb): > if driver is not None: > # unbind device driver > addr_array =3D pci_bus.split(':') > + if len(addr_array) =3D=3D 3: > + devfun_id =3D addr_array[2] > + elif len(addr_array) =3D=3D 2: > + devfun_id =3D '' > domain_id =3D addr_array[0] > bus_id =3D addr_array[1] > - devfun_id =3D addr_array[2] > port =3D GetNicObj(self, domain_id, bus_id, devfun_id) > + > port.stop() >=20 > def restore_interfaces_linux(self): > -- > 1.9.3