]> git.baikalelectronics.ru Git - kernel.git/commit
vlan: Avoid hash table lookup to find group.
authorJesse Gross <jesse@nicira.com>
Wed, 20 Oct 2010 13:56:05 +0000 (13:56 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 21 Oct 2010 08:26:53 +0000 (01:26 -0700)
commitcb9b757419f05c97d6bfa459e92055ca3f77afdf
tree7330c3234101c6d4c952f4abec9c8064df0e685a
parentf2761d98d9cbdc3f1a7fc9ce8b8119c7f5a1ad1e
vlan: Avoid hash table lookup to find group.

A struct net_device always maps to zero or one vlan groups and we
always know the device when we are looking up a group.  We currently
do a hash table lookup on the device to find the group but it is
much simpler to just store a pointer.

Signed-off-by: Jesse Gross <jesse@nicira.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_dev.c