From: YOSHIFUJI Hideaki Date: Wed, 14 Feb 2007 17:07:27 +0000 (+0900) Subject: [IPV6] ADDRCONF: Register inet6_dev earlier. X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=45ba9dd2007da23da5ac21179451c3c9fee30a96;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git [IPV6] ADDRCONF: Register inet6_dev earlier. Allocate inet6_dev earlier to allow users to set up per-interface variables. Signed-off-by: YOSHIFUJI Hideaki --- diff --git a/net/ipv6/addrconf.c b/net/ipv6/addrconf.c index 7a2a71536b5d..f6ac65d36559 100644 --- a/net/ipv6/addrconf.c +++ b/net/ipv6/addrconf.c @@ -2177,6 +2177,14 @@ static int addrconf_notify(struct notifier_block *this, unsigned long event, int run_pending = 0; switch(event) { + case NETDEV_REGISTER: + if (!idev) { + idev = ipv6_add_dev(dev); + if (!idev) + printk(KERN_WARNING "IPv6: add_dev failed for %s\n", + dev->name); + } + break; case NETDEV_UP: case NETDEV_CHANGE: if (event == NETDEV_UP) {