Skip to contentSkip to conversation

NETDEV: Wait for autoconfigurable network devices to become available

PATCH In review David VomLehn 2 participants 2 messages Apr 30, 2009

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 4/5 NETDEV: Wait for autoconfigurable network devices to become available

Delay IP autoconfiguration until network boot devices have been initialized. This depends on the boot device discovery code and on the asynchronous function call infrastructure.

---
 net/core/dev.c      |    2 +
 net/ipv4/ipconfig.c |   56 ++++++++++++++++++++++++++++++++++++++++++++++++++-
 2 files changed, 57 insertions(+), 1 deletions(-)
net/core/dev.c +2 -0
index 308a7d0..73cb282 100644
@@ -93,6 +93,7 @@
 #include <linux/ethtool.h>
 #include <linux/notifier.h>
 #include <linux/skbuff.h>
+#include <linux/device.h>
 #include <net/net_namespace.h>
 #include <net/sock.h>
 #include <linux/rtnetlink.h>
@@ -4497,6 +4498,7 @@ int register_netdevice(struct net_device *dev)
 		dev->reg_state = NETREG_UNREGISTERED;
 	}
 
+	bootdev_registered(BOOTDEV_NETDEV);
 out:
 	return ret;
 
net/ipv4/ipconfig.c +55 -1

86 lines not on this page · raw message

maintainer
#1 lore raw

This have_all_netdevs() will never return true unless the user specifies a specific device name.