提交 4a1c5371 编写于 作者: E Eric W. Biederman 提交者: David S. Miller

[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: NEric W. Biederman <ebiederm@xmission.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 772698f6
......@@ -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);
#endif
/* Network namespace this network device is inside */
struct net *nd_net;
/* bridge stuff */
struct net_bridge_port *br_port;
/* macvlan */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册