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 D2E4068A5 for ; Thu, 17 Dec 2015 08:59:55 +0100 (CET) Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga101.fm.intel.com with ESMTP; 16 Dec 2015 23:59:30 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.20,440,1444719600"; d="scan'208";a="843038470" Received: from fmsmsx105.amr.corp.intel.com ([10.18.124.203]) by orsmga001.jf.intel.com with ESMTP; 16 Dec 2015 23:59:23 -0800 Received: from fmsmsx155.amr.corp.intel.com (10.18.116.71) by FMSMSX105.amr.corp.intel.com (10.18.124.203) with Microsoft SMTP Server (TLS) id 14.3.248.2; Wed, 16 Dec 2015 23:59:20 -0800 Received: from shsmsx104.ccr.corp.intel.com (10.239.4.70) by FMSMSX155.amr.corp.intel.com (10.18.116.71) with Microsoft SMTP Server (TLS) id 14.3.248.2; Wed, 16 Dec 2015 23:59:20 -0800 Received: from shsmsx103.ccr.corp.intel.com ([169.254.4.28]) by SHSMSX104.ccr.corp.intel.com ([169.254.5.151]) with mapi id 14.03.0248.002; Thu, 17 Dec 2015 15:59:18 +0800 From: "Liu, Yong" To: "Pei, Yulong" , "dts@dpdk.org" Thread-Topic: [dts] [PATCH] framework: fix interface can not up when switch from igb_uio to legacy driver. Thread-Index: AQHRN9zFCT5ck6hfAkaNNOLlT9U3Rp7O0Zpg Date: Thu, 17 Dec 2015 07:59:17 +0000 Message-ID: <86228AFD5BCD8E4EBFD2B90117B5E81E10F914BA@SHSMSX103.ccr.corp.intel.com> References: <1450254925-24558-1-git-send-email-yulong.pei@intel.com> In-Reply-To: <1450254925-24558-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-inteldataclassification: CTP_IC x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsIiwiaWQiOiI4MWIzYTM2Mi1mYzQ2LTQ1NmYtYWUyOC05MDY1YmMwMmZkODUiLCJwcm9wcyI6W3sibiI6IkludGVsRGF0YUNsYXNzaWZpY2F0aW9uIiwidmFscyI6W3sidmFsdWUiOiJDVFBfSUMifV19XX0sIlN1YmplY3RMYWJlbHMiOltdLCJUTUNWZXJzaW9uIjoiMTUuNC4xMC4xOSIsIlRydXN0ZWRMYWJlbEhhc2giOiJCUlZmTW55UXNBNTNaUTdcL2hGM0hIakJTZHNzYmFRYW16dTlaMzh5MUNEOD0ifQ== 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] framework: 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: Thu, 17 Dec 2015 07:59:56 -0000 Hi Yulong, Bind nic to other driver will also use this function. Here's need one judgm= ent that bound driver should equal to default driver. > -----Original Message----- > From: dts [mailto:dts-bounces@dpdk.org] On Behalf Of Yulong Pei > Sent: Wednesday, December 16, 2015 4:35 PM > To: dts@dpdk.org > Subject: [dts] [PATCH] framework: 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 | 2 ++ > 1 file changed, 2 insertions(+) >=20 > diff --git a/framework/net_device.py b/framework/net_device.py > index 37495bd..0f0aec7 100644 > --- a/framework/net_device.py > +++ b/framework/net_device.py > @@ -722,6 +722,8 @@ class NetDevice(object): > self.__send_expect( > "echo %s > /sys/bus/pci/drivers/%s/bind" % > (nic_pci_num, 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