Commit 25587b00 authored by Lennert Buytenhek's avatar Lennert Buytenhek Committed by David S. Miller

[NET]: Remove net_call_rx_atomic.

parent 6955f61d
...@@ -587,7 +587,6 @@ static inline void dev_kfree_skb_any(struct sk_buff *skb) ...@@ -587,7 +587,6 @@ static inline void dev_kfree_skb_any(struct sk_buff *skb)
dev_kfree_skb(skb); dev_kfree_skb(skb);
} }
extern void net_call_rx_atomic(void (*fn)(void));
#define HAVE_NETIF_RX 1 #define HAVE_NETIF_RX 1
extern int netif_rx(struct sk_buff *skb); extern int netif_rx(struct sk_buff *skb);
#define HAVE_NETIF_RECEIVE_SKB 1 #define HAVE_NETIF_RECEIVE_SKB 1
......
...@@ -21,6 +21,7 @@ ...@@ -21,6 +21,7 @@
#include <linux/etherdevice.h> #include <linux/etherdevice.h>
#include <linux/init.h> #include <linux/init.h>
#include <linux/if_bridge.h> #include <linux/if_bridge.h>
#include <linux/brlock.h>
#include <asm/uaccess.h> #include <asm/uaccess.h>
#include "br_private.h" #include "br_private.h"
...@@ -55,11 +56,6 @@ static int __init br_init(void) ...@@ -55,11 +56,6 @@ static int __init br_init(void)
return 0; return 0;
} }
static void __br_clear_frame_hook(void)
{
br_handle_frame_hook = NULL;
}
static void __br_clear_ioctl_hook(void) static void __br_clear_ioctl_hook(void)
{ {
br_ioctl_hook = NULL; br_ioctl_hook = NULL;
...@@ -69,7 +65,11 @@ static void __exit br_deinit(void) ...@@ -69,7 +65,11 @@ static void __exit br_deinit(void)
{ {
unregister_netdevice_notifier(&br_device_notifier); unregister_netdevice_notifier(&br_device_notifier);
br_call_ioctl_atomic(__br_clear_ioctl_hook); br_call_ioctl_atomic(__br_clear_ioctl_hook);
net_call_rx_atomic(__br_clear_frame_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) #if defined(CONFIG_ATM_LANE) || defined(CONFIG_ATM_LANE_MODULE)
br_fdb_get_hook = NULL; br_fdb_get_hook = NULL;
br_fdb_put_hook = NULL; br_fdb_put_hook = NULL;
......
...@@ -1374,20 +1374,6 @@ static void net_tx_action(struct softirq_action *h) ...@@ -1374,20 +1374,6 @@ static void net_tx_action(struct softirq_action *h)
} }
} }
/**
* net_call_rx_atomic
* @fn: function to call
*
* Make a function call that is atomic with respect to the protocol
* layers.
*/
void net_call_rx_atomic(void (*fn)(void))
{
br_write_lock_bh(BR_NETPROTO_LOCK);
fn();
br_write_unlock_bh(BR_NETPROTO_LOCK);
}
#if defined(CONFIG_BRIDGE) || defined(CONFIG_BRIDGE_MODULE) #if defined(CONFIG_BRIDGE) || defined(CONFIG_BRIDGE_MODULE)
int (*br_handle_frame_hook)(struct sk_buff *skb) = NULL; int (*br_handle_frame_hook)(struct sk_buff *skb) = NULL;
#endif #endif
......
...@@ -587,7 +587,6 @@ EXPORT_SYMBOL(ip_route_me_harder); ...@@ -587,7 +587,6 @@ EXPORT_SYMBOL(ip_route_me_harder);
EXPORT_SYMBOL(register_gifconf); EXPORT_SYMBOL(register_gifconf);
EXPORT_SYMBOL(net_call_rx_atomic);
EXPORT_SYMBOL(softnet_data); EXPORT_SYMBOL(softnet_data);
#if defined(CONFIG_NET_RADIO) || defined(CONFIG_NET_PCMCIA_RADIO) #if defined(CONFIG_NET_RADIO) || defined(CONFIG_NET_PCMCIA_RADIO)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment