diff options
author | Pavel Emelyanov <xemul@openvz.org> | 2008-04-16 03:54:39 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-04-16 03:56:18 -0400 |
commit | 7a17a2f79f54a988d08ffa33ec9e1038bffec42b (patch) | |
tree | 3d65b49a2d8b76851eb97a47c69e6481a884c8dc /net/8021q/vlan.h | |
parent | 80de2d982156b5f6f50ff97175dc94ccfe3d093f (diff) |
[VLAN]: Make the vlan_name_type per-net.
This includes moving one on the struct vlan_net and
s/vlan_name_type/vn->name_type/ over the code.
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.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/8021q/vlan.h b/net/8021q/vlan.h index 7258357db847..5229a72c7ea1 100644 --- a/net/8021q/vlan.h +++ b/net/8021q/vlan.h | |||
@@ -3,8 +3,6 @@ | |||
3 | 3 | ||
4 | #include <linux/if_vlan.h> | 4 | #include <linux/if_vlan.h> |
5 | 5 | ||
6 | extern unsigned short vlan_name_type; | ||
7 | |||
8 | #define VLAN_GRP_HASH_SHIFT 5 | 6 | #define VLAN_GRP_HASH_SHIFT 5 |
9 | #define VLAN_GRP_HASH_SIZE (1 << VLAN_GRP_HASH_SHIFT) | 7 | #define VLAN_GRP_HASH_SIZE (1 << VLAN_GRP_HASH_SHIFT) |
10 | #define VLAN_GRP_HASH_MASK (VLAN_GRP_HASH_SIZE - 1) | 8 | #define VLAN_GRP_HASH_MASK (VLAN_GRP_HASH_SIZE - 1) |
@@ -59,6 +57,8 @@ struct vlan_net { | |||
59 | struct proc_dir_entry *proc_vlan_dir; | 57 | struct proc_dir_entry *proc_vlan_dir; |
60 | /* /proc/net/vlan/config */ | 58 | /* /proc/net/vlan/config */ |
61 | struct proc_dir_entry *proc_vlan_conf; | 59 | struct proc_dir_entry *proc_vlan_conf; |
60 | /* Determines interface naming scheme. */ | ||
61 | unsigned short name_type; | ||
62 | }; | 62 | }; |
63 | 63 | ||
64 | #endif /* !(__BEN_VLAN_802_1Q_INC__) */ | 64 | #endif /* !(__BEN_VLAN_802_1Q_INC__) */ |