NETDEV: Wait for autoconfigurable network devices to become available
Subsystems (3)
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.
Signed-off-by David VomLehn <[email protected]>
--- net/core/dev.c | 2 + net/ipv4/ipconfig.c | 56 ++++++++++++++++++++++++++++++++++++++++++++++++++- 2 files changed, 57 insertions(+), 1 deletions(-)
net/core/dev.c +2 -0
@@ -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
David Miller
maintainerThis have_all_netdevs() will never return true unless the user specifies a specific device name.