test suite reviews and discussions
 help / color / mirror / Atom feed
* [dts] [V2][PATCH] fix interface can not up when switch from igb_uio to legacy driver
@ 2015-12-23  3:55 Yulong Pei
  2015-12-23  7:35 ` Liu, Yong
  0 siblings, 1 reply; 2+ messages in thread
From: Yulong Pei @ 2015-12-23  3:55 UTC (permalink / raw)
  To: dts

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@intel.com>
---
 framework/net_device.py | 3 +++
 1 file changed, 3 insertions(+)

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 == self.default_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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [dts] [V2][PATCH] fix interface can not up when switch from igb_uio to legacy driver
  2015-12-23  3:55 [dts] [V2][PATCH] fix interface can not up when switch from igb_uio to legacy driver Yulong Pei
@ 2015-12-23  7:35 ` Liu, Yong
  0 siblings, 0 replies; 2+ messages in thread
From: Liu, Yong @ 2015-12-23  7:35 UTC (permalink / raw)
  To: Pei, Yulong, dts

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
> 
> 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@intel.com>
> ---
>  framework/net_device.py | 3 +++
>  1 file changed, 3 insertions(+)
> 
> 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 == self.default_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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-12-23  7:35 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-12-23  3:55 [dts] [V2][PATCH] fix interface can not up when switch from igb_uio to legacy driver Yulong Pei
2015-12-23  7:35 ` Liu, Yong

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).