diff options
author | Eric W. Biederman <ebiederm@xmission.com> | 2007-09-12 05:56:32 -0400 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2007-10-10 19:49:04 -0400 |
commit | 4a1c537113cdc688aabc3fb9bb6ed18ec821c779 (patch) | |
tree | 82a414159a7646915a913f57ea94271565f43e1f /include | |
parent | 772698f6362680b65211f7efc68121f1e4c28aa5 (diff) |
[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 <ebiederm@xmission.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include')
-rw-r--r-- | 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 8f00bdf95ef4..dc3c15b726bc 100644 --- a/include/linux/netdevice.h +++ b/include/linux/netdevice.h | |||
@@ -41,6 +41,7 @@ | |||
41 | #include <linux/dmaengine.h> | 41 | #include <linux/dmaengine.h> |
42 | #include <linux/workqueue.h> | 42 | #include <linux/workqueue.h> |
43 | 43 | ||
44 | struct net; | ||
44 | struct vlan_group; | 45 | struct vlan_group; |
45 | struct ethtool_ops; | 46 | struct ethtool_ops; |
46 | struct netpoll_info; | 47 | struct netpoll_info; |
@@ -663,6 +664,9 @@ struct net_device | |||
663 | void (*poll_controller)(struct net_device *dev); | 664 | void (*poll_controller)(struct net_device *dev); |
664 | #endif | 665 | #endif |
665 | 666 | ||
667 | /* Network namespace this network device is inside */ | ||
668 | struct net *nd_net; | ||
669 | |||
666 | /* bridge stuff */ | 670 | /* bridge stuff */ |
667 | struct net_bridge_port *br_port; | 671 | struct net_bridge_port *br_port; |
668 | /* macvlan */ | 672 | /* macvlan */ |