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>
Showing
- include/linux/if_vlan.h 19 additions, 0 deletionsinclude/linux/if_vlan.h
- include/linux/netdevice.h 4 additions, 1 deletioninclude/linux/netdevice.h
- net/8021q/vlan.c 10 additions, 54 deletionsnet/8021q/vlan.c
- net/8021q/vlan.h 0 additions, 17 deletionsnet/8021q/vlan.h
- net/8021q/vlan_dev.c 1 addition, 1 deletionnet/8021q/vlan_dev.c
Loading
Please register or sign in to comment