aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/netdevice.h
diff options
context:
space:
mode:
authorJiri Pirko <jpirko@redhat.com>2011-12-07 23:11:18 -0500
committerDavid S. Miller <davem@davemloft.net>2011-12-08 19:52:42 -0500
commit5b9ea6e022e9ba0fe39cb349ac40361f78d5da5b (patch)
tree11f0de492ee799fd4174f79ac6aae4c3533beb25 /include/linux/netdevice.h
parent87002b03baabd2b8f6281ab6411ed88d24958de1 (diff)
vlan: introduce vid list with reference counting
This allows to keep track of vids needed to be in rx vlan filters of devices even if they are used in bond/team etc. vlan_info as well as vlan_group previously was, is allocated when first vid is added and dealocated whan last vid is deleted. vlan_group definition is moved to private header. Signed-off-by: Jiri Pirko <jpirko@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/netdevice.h')
-rw-r--r--include/linux/netdevice.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h
index f7bff9615728..603730804da5 100644
--- a/include/linux/netdevice.h
+++ b/include/linux/netdevice.h
@@ -55,7 +55,6 @@
55 55
56#include <linux/netdev_features.h> 56#include <linux/netdev_features.h>
57 57
58struct vlan_group;
59struct netpoll_info; 58struct netpoll_info;
60struct phy_device; 59struct phy_device;
61/* 802.11 specific */ 60/* 802.11 specific */
@@ -1096,7 +1095,7 @@ struct net_device {
1096 /* Protocol specific pointers */ 1095 /* Protocol specific pointers */
1097 1096
1098#if IS_ENABLED(CONFIG_VLAN_8021Q) 1097#if IS_ENABLED(CONFIG_VLAN_8021Q)
1099 struct vlan_group __rcu *vlgrp; /* VLAN group */ 1098 struct vlan_info __rcu *vlan_info; /* VLAN info */
1100#endif 1099#endif
1101#if IS_ENABLED(CONFIG_NET_DSA) 1100#if IS_ENABLED(CONFIG_NET_DSA)
1102 struct dsa_switch_tree *dsa_ptr; /* dsa specific data */ 1101 struct dsa_switch_tree *dsa_ptr; /* dsa specific data */