aboutsummaryrefslogtreecommitdiffstats
path: root/net/8021q/vlan.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/8021q/vlan.c')
-rw-r--r--net/8021q/vlan.c21
1 files changed, 0 insertions, 21 deletions
diff --git a/net/8021q/vlan.c b/net/8021q/vlan.c
index b463ba47024d..34c1d0b241ca 100644
--- a/net/8021q/vlan.c
+++ b/net/8021q/vlan.c
@@ -115,26 +115,6 @@ err1:
115 return err; 115 return err;
116} 116}
117 117
118/* Cleanup all vlan devices
119 * Note: devices that have been registered that but not
120 * brought up will exist but have no module ref count.
121 */
122static void __exit vlan_cleanup_devices(void)
123{
124 struct net_device *dev, *nxt;
125
126 rtnl_lock();
127 for_each_netdev_safe(dev, nxt) {
128 if (dev->priv_flags & IFF_802_1Q_VLAN) {
129 unregister_vlan_dev(VLAN_DEV_INFO(dev)->real_dev,
130 VLAN_DEV_INFO(dev)->vlan_id);
131
132 unregister_netdevice(dev);
133 }
134 }
135 rtnl_unlock();
136}
137
138/* 118/*
139 * Module 'remove' entry point. 119 * Module 'remove' entry point.
140 * o delete /proc/net/router directory and static entries. 120 * o delete /proc/net/router directory and static entries.
@@ -150,7 +130,6 @@ static void __exit vlan_cleanup_module(void)
150 unregister_netdevice_notifier(&vlan_notifier_block); 130 unregister_netdevice_notifier(&vlan_notifier_block);
151 131
152 dev_remove_pack(&vlan_packet_type); 132 dev_remove_pack(&vlan_packet_type);
153 vlan_cleanup_devices();
154 133
155 /* This table must be empty if there are no module 134 /* This table must be empty if there are no module
156 * references left. 135 * references left.