aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/loopback.c
diff options
context:
space:
mode:
authorDaniel Lezcano <dlezcano@fr.ibm.com>2007-09-12 08:54:14 -0400
committerDavid S. Miller <davem@sunset.davemloft.net>2007-10-10 19:49:17 -0400
commitabf07acbb9f122218095d0d221e0f949160ccc37 (patch)
treeeca70bc6a9c97fef39500bad0bca67efdf78402f /drivers/net/loopback.c
parent36ac3135f5e824942fada4efa3204066b4b40ab1 (diff)
[NETNS]: Fix loopback network namespace initialization.
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>
Diffstat (limited to 'drivers/net/loopback.c')
-rw-r--r--drivers/net/loopback.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/loopback.c b/drivers/net/loopback.c
index e399f7b201e3..a328da72833c 100644
--- a/drivers/net/loopback.c
+++ b/drivers/net/loopback.c
@@ -225,6 +225,7 @@ struct net_device loopback_dev = {
225 | NETIF_F_LLTX 225 | NETIF_F_LLTX
226 | NETIF_F_NETNS_LOCAL, 226 | NETIF_F_NETNS_LOCAL,
227 .ethtool_ops = &loopback_ethtool_ops, 227 .ethtool_ops = &loopback_ethtool_ops,
228 .nd_net = &init_net,
228}; 229};
229 230
230/* Setup and register the loopback device. */ 231/* Setup and register the loopback device. */