Skip to content

Commit

Permalink
[NETNS]: Fix loopback network namespace initialization.
Browse files Browse the repository at this point in the history
The core patchset of the network namespace sent by
Eric Biederman does not do dynamic loopback creation.
So there is no call to alloc_netdev_mq which fills the
network namespace field of the netdevice.

This patch assign the loopback to the init network namespace.

Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Daniel Lezcano authored and David S. Miller committed Oct 10, 2007
1 parent 36ac313 commit abf07ac
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/net/loopback.c
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,7 @@ struct net_device loopback_dev = {
| NETIF_F_LLTX
| NETIF_F_NETNS_LOCAL,
.ethtool_ops = &loopback_ethtool_ops,
.nd_net = &init_net,
};

/* Setup and register the loopback device. */
Expand Down

0 comments on commit abf07ac

Please sign in to comment.