diff options
author | Eric Dumazet <eric.dumazet@gmail.com> | 2009-10-27 03:06:49 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-10-28 05:22:08 -0400 |
commit | 63c8099d90096db56ee1c66c31f05d4fcfbc1c69 (patch) | |
tree | 1c0393ab776d49476858a4f97b3d60597330f370 /include/linux | |
parent | 23289a37e2b127dfc4de1313fba15bb4c9f0cd5b (diff) |
vlan: Optimize multiple unregistration
Use unregister_netdevice_many() to speedup master device unregister.
Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/if_vlan.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/if_vlan.h b/include/linux/if_vlan.h index 8898cbebcf34..71a4870c09a9 100644 --- a/include/linux/if_vlan.h +++ b/include/linux/if_vlan.h | |||
@@ -85,6 +85,7 @@ struct vlan_group { | |||
85 | * the vlan is attached to. | 85 | * the vlan is attached to. |
86 | */ | 86 | */ |
87 | unsigned int nr_vlans; | 87 | unsigned int nr_vlans; |
88 | int killall; | ||
88 | struct hlist_node hlist; /* linked list */ | 89 | struct hlist_node hlist; /* linked list */ |
89 | struct net_device **vlan_devices_arrays[VLAN_GROUP_ARRAY_SPLIT_PARTS]; | 90 | struct net_device **vlan_devices_arrays[VLAN_GROUP_ARRAY_SPLIT_PARTS]; |
90 | struct rcu_head rcu; | 91 | struct rcu_head rcu; |