]> git.baikalelectronics.ru Git - kernel.git/commit
vlan: introduce vid list with reference counting
authorJiri Pirko <jpirko@redhat.com>
Thu, 8 Dec 2011 04:11:18 +0000 (04:11 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 9 Dec 2011 00:52:42 +0000 (19:52 -0500)
commit06f389509bc24441e01345709382be49529d450c
tree11f0de492ee799fd4174f79ac6aae4c3533beb25
parent5217d87602f337656dd60acbb9f8f8beec4c41e3
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>
include/linux/if_vlan.h
include/linux/netdevice.h
net/8021q/vlan.c
net/8021q/vlan.h
net/8021q/vlan_core.c