Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=abf07acbb9f122218095d0d221e0f949160ccc37
Commit:     abf07acbb9f122218095d0d221e0f949160ccc37
Parent:     36ac3135f5e824942fada4efa3204066b4b40ab1
Author:     Daniel Lezcano <[EMAIL PROTECTED]>
AuthorDate: Wed Sep 12 14:54:14 2007 +0200
Committer:  David S. Miller <[EMAIL PROTECTED]>
CommitDate: Wed Oct 10 16:49:17 2007 -0700

    [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 <[EMAIL PROTECTED]>
    Signed-off-by: David S. Miller <[EMAIL PROTECTED]>
---
 drivers/net/loopback.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/drivers/net/loopback.c b/drivers/net/loopback.c
index e399f7b..a328da7 100644
--- a/drivers/net/loopback.c
+++ b/drivers/net/loopback.c
@@ -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. */
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to