static void __exit br_deinit(void)
{
	unregister_netdevice_notifier(&br_device_notifier);
	br_call_ioctl_atomic(__br_clear_ioctl_hook);
	net_call_rx_atomic(__br_clear_frame_hook);
#if defined(CONFIG_ATM_LANE) || defined(CONFIG_ATM_LANE_MODULE)
	br_fdb_get_hook = NULL;
	br_fdb_put_hook = NULL;
#endif
}
Beispiel #2
0
static void __exit br_deinit(void)
{
    unregister_netdevice_notifier(&br_device_notifier);
    br_call_ioctl_atomic(__br_clear_ioctl_hook);

    br_write_lock_bh(BR_NETPROTO_LOCK);
    br_handle_frame_hook = NULL;
    br_write_unlock_bh(BR_NETPROTO_LOCK);

#if defined(CONFIG_ATM_LANE) || defined(CONFIG_ATM_LANE_MODULE)
    br_fdb_get_hook = NULL;
    br_fdb_put_hook = NULL;
#endif
}