From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by dpdk.org (Postfix) with ESMTP id 549CA29D6 for ; Wed, 30 Aug 2017 11:08:45 +0200 (CEST) Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga104.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 30 Aug 2017 02:08:44 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.41,448,1498546800"; d="scan'208";a="129846290" Received: from fmsmsx108.amr.corp.intel.com ([10.18.124.206]) by orsmga002.jf.intel.com with ESMTP; 30 Aug 2017 02:08:44 -0700 Received: from fmsmsx101.amr.corp.intel.com (10.18.124.199) by FMSMSX108.amr.corp.intel.com (10.18.124.206) with Microsoft SMTP Server (TLS) id 14.3.319.2; Wed, 30 Aug 2017 02:08:43 -0700 Received: from shsmsx102.ccr.corp.intel.com (10.239.4.154) by fmsmsx101.amr.corp.intel.com (10.18.124.199) with Microsoft SMTP Server (TLS) id 14.3.319.2; Wed, 30 Aug 2017 02:08:43 -0700 Received: from shsmsx103.ccr.corp.intel.com ([169.254.4.219]) by shsmsx102.ccr.corp.intel.com ([169.254.2.39]) with mapi id 14.03.0319.002; Wed, 30 Aug 2017 17:08:40 +0800 From: "Liu, Yong" To: "Xu, GangX" , "dts@dpdk.org" CC: "Xu, GangX" Thread-Topic: [dts] [PATCH V2] fix FreeBSD get mac addr error Thread-Index: AQHTIW4THMSR4hwEHECrSGGEoKETyqKcnBsQ Date: Wed, 30 Aug 2017 09:08:39 +0000 Message-ID: <86228AFD5BCD8E4EBFD2B90117B5E81E62E957E3@SHSMSX103.ccr.corp.intel.com> References: <1504083535-102962-1-git-send-email-gangx.xu@intel.com> In-Reply-To: <1504083535-102962-1-git-send-email-gangx.xu@intel.com> Accept-Language: zh-CN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-version: 11.0.0.116 dlp-reaction: no-action 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] fix FreeBSD get mac addr error 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: Wed, 30 Aug 2017 09:08:45 -0000 Gang, Nothing changed from V1 patch, please review my previous comments. > -----Original Message----- > From: dts [mailto:dts-bounces@dpdk.org] On Behalf Of xu,gang > Sent: Wednesday, August 30, 2017 4:59 PM > To: dts@dpdk.org > Cc: Xu, GangX > Subject: [dts] [PATCH V2] fix FreeBSD get mac addr error >=20 > get mac addr need restore interface >=20 > Signed-off-by: xu,gang > --- > framework/dut.py | 4 ++++ > 1 file changed, 4 insertions(+) >=20 > diff --git a/framework/dut.py b/framework/dut.py > index 22ff0bb..682da8c 100644 > --- a/framework/dut.py > +++ b/framework/dut.py > @@ -190,6 +190,10 @@ class Dut(Crb): >=20 > if self.get_os_type() =3D=3D 'freebsd': > self.send_expect('alias make=3Dgmake', '# ') > + out =3D self.__send_expect('kldstat', '# ') > + if 'nic_uio.ko' in out: > + self.__send_expect('kldunload nic_uio.ko', '# ') > + self.__send_expect('kldunload contigmem.ko', '# ') >=20 > self.init_core_list() > self.pci_devices_information() > -- > 1.9.3