[dts] [PATCH] framework: fix interface can not up when switch from igb_uio to legacy driver.

Liu, Yong yong.liu at intel.com
Thu Dec 17 08:59:17 CET 2015


Hi Yulong,
Bind nic to other driver will also use this function. Here's need one judgment that bound driver should equal to default driver.

> -----Original Message-----
> From: dts [mailto:dts-bounces at dpdk.org] On Behalf Of Yulong Pei
> Sent: Wednesday, December 16, 2015 4:35 PM
> To: dts at dpdk.org
> Subject: [dts] [PATCH] framework: fix interface can not up when switch
> from igb_uio to legacy driver.
> 
> 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 <yulong.pei at intel.com>
> ---
>  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



More information about the dts mailing list