From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by dpdk.org (Postfix) with ESMTP id 3DCE65A72 for ; Wed, 16 Dec 2015 09:35:38 +0100 (CET) Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga101.jf.intel.com with ESMTP; 16 Dec 2015 00:35:34 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.20,436,1444719600"; d="scan'208";a="872538224" Received: from shvmail01.sh.intel.com ([10.239.29.42]) by orsmga002.jf.intel.com with ESMTP; 16 Dec 2015 00:35:32 -0800 Received: from shecgisg003.sh.intel.com (shecgisg003.sh.intel.com [10.239.29.90]) by shvmail01.sh.intel.com with ESMTP id tBG8ZUu2010502; Wed, 16 Dec 2015 16:35:30 +0800 Received: from shecgisg003.sh.intel.com (localhost [127.0.0.1]) by shecgisg003.sh.intel.com (8.13.6/8.13.6/SuSE Linux 0.8) with ESMTP id tBG8ZS4K024593; Wed, 16 Dec 2015 16:35:30 +0800 Received: (from ypei@localhost) by shecgisg003.sh.intel.com (8.13.6/8.13.6/Submit) id tBG8ZSDN024589; Wed, 16 Dec 2015 16:35:28 +0800 From: Yulong Pei To: dts@dpdk.org Date: Wed, 16 Dec 2015 16:35:25 +0800 Message-Id: <1450254925-24558-1-git-send-email-yulong.pei@intel.com> X-Mailer: git-send-email 1.7.4.1 In-Reply-To: References: Subject: [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: Wed, 16 Dec 2015 08:35:38 -0000 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. Signed-off-by: Yulong Pei --- framework/net_device.py | 2 ++ 1 file changed, 2 insertions(+) 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 = self.get_interface_name() + self.__send_expect("ifconfig %s up" % itf, "# ") def bind_driver_linux_pci_stub(self, bus_id, devfun_id): """ -- 2.1.0