aboutsummaryrefslogtreecommitdiffstats
path: root/net/8021q/vlan.h
diff options
context:
space:
mode:
authorPavel Emelyanov <xemul@openvz.org>2008-04-16 00:51:51 -0700
committerDavid S. Miller <davem@davemloft.net>2008-04-16 00:51:51 -0700
commita59a8c1c865e6d231e1b5675f767ace006f08c21 (patch)
tree86b8999246864dbc59f6989b79af0daf2e1de3dd /net/8021q/vlan.h
parent[VLAN]: Add a net argument to proc init and cleanup calls. (diff)
downloadlinux-dev-a59a8c1c865e6d231e1b5675f767ace006f08c21.tar.xz
linux-dev-a59a8c1c865e6d231e1b5675f767ace006f08c21.zip
[VLAN]: Create proc entries in the proper net.
The proc_vlan_dir and proc_vlan_conf migrate on the struct vlan_net and their creation uses the struct net. The devices' entries use the corresponding device's net. Signed-off-by: Pavel Emelyanov <xemul@openvz.org> Acked-by: Patrick McHardy <kaber@trash.net> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/8021q/vlan.h')
-rw-r--r--net/8021q/vlan.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/net/8021q/vlan.h b/net/8021q/vlan.h
index f27d8d6f3625..7258357db847 100644
--- a/net/8021q/vlan.h
+++ b/net/8021q/vlan.h
@@ -52,7 +52,13 @@ static inline int is_vlan_dev(struct net_device *dev)
extern int vlan_net_id;
+struct proc_dir_entry;
+
struct vlan_net {
+ /* /proc/net/vlan */
+ struct proc_dir_entry *proc_vlan_dir;
+ /* /proc/net/vlan/config */
+ struct proc_dir_entry *proc_vlan_conf;
};
#endif /* !(__BEN_VLAN_802_1Q_INC__) */