[VLAN]: Tag vlan_group_device with net device, not ifindex.
authorPavel Emelyanov <xemul@openvz.org>
Wed, 16 Apr 2008 07:48:04 +0000 (00:48 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 16 Apr 2008 07:48:04 +0000 (00:48 -0700)
commita9fde2607895667823e9d1172fc193087125ef68
treecf5481c66e911dc43bd2c9463603562d35af4cfe
parent669f87baab90183e13b95480aecf8d7bac92ca3c
[VLAN]: Tag vlan_group_device with net device, not ifindex.

Currently vlan group is searched using one key - the ifindex.
We'll have to lookup the vlan_group by two keys - ifindex and
net. Turning the vlan_group lookup key to struct net_device
pointer will make this process easier.

Besides, this will eliminate one more place in the networking,
that assumes that indexes are unique in the kernel.

Signed-off-by: Pavel Emelyanov <xemul@openvz.org>
Acked-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/if_vlan.h
net/8021q/vlan.c