Skip to content

Commit

Permalink
[NETNS]: Enable inetdev_event notifier.
Browse files Browse the repository at this point in the history
After all these preparations it is time to enable main IPv4 device
initialization routine inside namespace. It is safe do this now.

Signed-off-by: Denis V. Lunev <den@openvz.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Denis V. Lunev authored and David S. Miller committed Feb 29, 2008
1 parent 2430aa8 commit be162d6
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions net/ipv4/devinet.c
Original file line number Diff line number Diff line change
Expand Up @@ -1045,9 +1045,6 @@ static int inetdev_event(struct notifier_block *this, unsigned long event,
struct net_device *dev = ptr;
struct in_device *in_dev = __in_dev_get_rtnl(dev);

if (dev->nd_net != &init_net)
return NOTIFY_DONE;

ASSERT_RTNL();

if (!in_dev) {
Expand Down

0 comments on commit be162d6

Please sign in to comment.