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 9A38D379E for ; Wed, 23 Dec 2015 08:35:43 +0100 (CET) Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga104.fm.intel.com with ESMTP; 22 Dec 2015 23:35:43 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.20,467,1444719600"; d="scan'208";a="877295908" Received: from fmsmsx104.amr.corp.intel.com ([10.18.124.202]) by orsmga002.jf.intel.com with ESMTP; 22 Dec 2015 23:35:42 -0800 Received: from fmsmsx156.amr.corp.intel.com (10.18.116.74) by fmsmsx104.amr.corp.intel.com (10.18.124.202) with Microsoft SMTP Server (TLS) id 14.3.248.2; Tue, 22 Dec 2015 23:35:42 -0800 Received: from shsmsx101.ccr.corp.intel.com (10.239.4.153) by fmsmsx156.amr.corp.intel.com (10.18.116.74) with Microsoft SMTP Server (TLS) id 14.3.248.2; Tue, 22 Dec 2015 23:35:41 -0800 Received: from shsmsx103.ccr.corp.intel.com ([169.254.4.28]) by SHSMSX101.ccr.corp.intel.com ([169.254.1.190]) with mapi id 14.03.0248.002; Wed, 23 Dec 2015 15:35:39 +0800 From: "Liu, Yong" To: "Pei, Yulong" , "dts@dpdk.org" Thread-Topic: [dts] [V2][PATCH] fix interface can not up when switch from igb_uio to legacy driver Thread-Index: AQHRPTXeBkQxGqd7P06Nn1dJDmNmxZ7YLo5w Date: Wed, 23 Dec 2015 07:35:39 +0000 Message-ID: <86228AFD5BCD8E4EBFD2B90117B5E81E10F946D0@SHSMSX103.ccr.corp.intel.com> References: <1450842905-31238-1-git-send-email-yulong.pei@intel.com> In-Reply-To: <1450842905-31238-1-git-send-email-yulong.pei@intel.com> Accept-Language: zh-CN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiMmEyZWE1ZDEtNjMwOC00YTNjLThhOTgtNjE1MWI2YjgxYjk3IiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX0lDIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE1LjQuMTAuMTkiLCJUcnVzdGVkTGFiZWxIYXNoIjoiU1NvUWZPVVluNXcxZUVwUnNlcEZlU0JnQ2Z6empUcVFsZTg2YnlNSU1HST0ifQ== x-ctpclassification: CTP_IC 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] [V2][PATCH] fix interface can not up when switch from igb_uio to legacy driver 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, 23 Dec 2015 07:35:44 -0000 Applied. Thanks. > -----Original Message----- > From: dts [mailto:dts-bounces@dpdk.org] On Behalf Of Yulong Pei > Sent: Wednesday, December 23, 2015 11:55 AM > To: dts@dpdk.org > Subject: [dts] [V2][PATCH] fix interface can not up when switch from > igb_uio to legacy driver >=20 > when an interface switch from igb_uio driver to legacy linux driver, > the interface always in down state, but it should be in up state. >=20 > Signed-off-by: Yulong Pei > --- > framework/net_device.py | 3 +++ > 1 file changed, 3 insertions(+) >=20 > diff --git a/framework/net_device.py b/framework/net_device.py > index 37495bd..f3ee9a7 100644 > --- a/framework/net_device.py > +++ b/framework/net_device.py > @@ -722,6 +722,9 @@ class NetDevice(object): > self.__send_expect( > "echo %s > /sys/bus/pci/drivers/%s/bind" % > (nic_pci_num, driver), "# ") > + if driver =3D=3D self.default_driver: > + itf =3D self.get_interface_name() > + self.__send_expect("ifconfig %s up" % itf, "# ") >=20 > def bind_driver_linux_pci_stub(self, bus_id, devfun_id): > """ > -- > 2.1.0