net: Fix userspace RTM_NEWLINK notifications.
commitad496b34c6835a89dd3a8f6c07dfcf8a0dd7c277
authorEric W. Biederman <ebiederm@xmission.com>
Mon, 14 Dec 2009 06:39:28 +0000 (13 22:39 -0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 18 Dec 2009 22:05:38 +0000 (18 14:05 -0800)
tree11ea467997f677454fa4ddf54e7632c2d522b781
parent383073d49fc78aa793c51018e29253c83410401e
net: Fix userspace RTM_NEWLINK notifications.

commit d90a909e1f3e006a1d57fe11fd417173b6494701 upstream.

I received some bug reports about userspace programs having problems
because after RTM_NEWLINK was received they could not immeidate
access files under /proc/sys/net/ because they had not been
registered yet.

The problem was trivailly fixed by moving the userspace
notification from rtnetlink_event to the end of register_netdevice.

Signed-off-by: Eric W. Biederman <ebiederm@aristanetworks.com>
Cc: David Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
net/core/dev.c
net/core/rtnetlink.c