Commit b707fda2 authored by Eduardo Otubo's avatar Eduardo Otubo Committed by David S. Miller
Browse files

xen-netfront: enable device after manual module load

When loading the module after unloading it, the network interface would
not be enabled and thus wouldn't have a backend counterpart and unable
to be used by the guest.

The guest would face errors like:

  [root@guest ~]# ethtool -i eth0
  Cannot get driver information: No such device

  [root@guest ~]# ifconfig eth0
  eth0: error fetching interface information: Device not found

This patch initializes the state of the netfront device whenever it is
loaded manually, this state would communicate the netback to create its
device and establish the connection between them.

Signed-off-by: default avatarEduardo Otubo <>
Reviewed-by: default avatarBoris Ostrovsky <>
Signed-off-by: default avatarDavid S. Miller <>
parent bde21915
......@@ -1326,6 +1326,7 @@ static struct net_device *xennet_create_dev(struct xenbus_device *dev)
xenbus_switch_state(dev, XenbusStateInitialising);
return netdev;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment