dev.c (9bf2b8c280b5c02ca8a9e75263bf3ca998fed144) | dev.c (b0ab2fabb5b91da99c189db02e91ae10bc8355c5) |
---|---|
1/* 2 * NET3 Protocol independent device support routines. 3 * 4 * This program is free software; you can redistribute it and/or 5 * modify it under the terms of the GNU General Public License 6 * as published by the Free Software Foundation; either version 7 * 2 of the License, or (at your option) any later version. 8 * --- 7077 unchanged lines hidden (view full) --- 7086 * The netdev todo list containing all network devices 7087 * unregistrations that happen in default_device_exit_batch 7088 * will run in the rtnl_unlock() at the end of 7089 * default_device_exit_batch. 7090 */ 7091 rtnl_lock_unregistering(net_list); 7092 list_for_each_entry(net, net_list, exit_list) { 7093 for_each_netdev_reverse(net, dev) { | 1/* 2 * NET3 Protocol independent device support routines. 3 * 4 * This program is free software; you can redistribute it and/or 5 * modify it under the terms of the GNU General Public License 6 * as published by the Free Software Foundation; either version 7 * 2 of the License, or (at your option) any later version. 8 * --- 7077 unchanged lines hidden (view full) --- 7086 * The netdev todo list containing all network devices 7087 * unregistrations that happen in default_device_exit_batch 7088 * will run in the rtnl_unlock() at the end of 7089 * default_device_exit_batch. 7090 */ 7091 rtnl_lock_unregistering(net_list); 7092 list_for_each_entry(net, net_list, exit_list) { 7093 for_each_netdev_reverse(net, dev) { |
7094 if (dev->rtnl_link_ops) | 7094 if (dev->rtnl_link_ops && dev->rtnl_link_ops->dellink) |
7095 dev->rtnl_link_ops->dellink(dev, &dev_kill_list); 7096 else 7097 unregister_netdevice_queue(dev, &dev_kill_list); 7098 } 7099 } 7100 unregister_netdevice_many(&dev_kill_list); 7101 rtnl_unlock(); 7102} --- 87 unchanged lines hidden --- | 7095 dev->rtnl_link_ops->dellink(dev, &dev_kill_list); 7096 else 7097 unregister_netdevice_queue(dev, &dev_kill_list); 7098 } 7099 } 7100 unregister_netdevice_many(&dev_kill_list); 7101 rtnl_unlock(); 7102} --- 87 unchanged lines hidden --- |