Commit:     4a1c537113cdc688aabc3fb9bb6ed18ec821c779
Parent:     772698f6362680b65211f7efc68121f1e4c28aa5
Author:     Eric W. Biederman <[EMAIL PROTECTED]>
AuthorDate: Wed Sep 12 11:56:32 2007 +0200
Committer:  David S. Miller <[EMAIL PROTECTED]>
CommitDate: Wed Oct 10 16:49:04 2007 -0700

    [NET]: Add a network namespace tag to struct net_device
    Please note that network devices do not increase the count
    count on the network namespace.  The are inside the network
    namespace and so the network namespace tag is in the nature
    of a back pointer and so getting and putting the network namespace
    is unnecessary.
    Signed-off-by: Eric W. Biederman <[EMAIL PROTECTED]>
    Signed-off-by: David S. Miller <[EMAIL PROTECTED]>
 include/linux/netdevice.h |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h
index 8f00bdf..dc3c15b 100644
--- a/include/linux/netdevice.h
+++ b/include/linux/netdevice.h
@@ -41,6 +41,7 @@
 #include <linux/dmaengine.h>
 #include <linux/workqueue.h>
+struct net;
 struct vlan_group;
 struct ethtool_ops;
 struct netpoll_info;
@@ -663,6 +664,9 @@ struct net_device
        void                    (*poll_controller)(struct net_device *dev);
+       /* Network namespace this network device is inside */
+       struct net              *nd_net;
        /* bridge stuff */
        struct net_bridge_port  *br_port;
        /* macvlan */
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

Reply via email to