Commit e3c265bc authored by Jeff Moyer's avatar Jeff Moyer Committed by Linus Torvalds

[PATCH] netpoll: kill CONFIG_NETPOLL_RX

This patch removes CONFIG_NETPOLL_RX, as discussed.
Signed-off-by: default avatarJeff Moyer <jmoyer@redhat.com>
Signed-off-by: default avatarMatt Mackall <mpm@selenic.com>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent a668a6b0
...@@ -462,7 +462,7 @@ struct net_device ...@@ -462,7 +462,7 @@ struct net_device
unsigned char *haddr); unsigned char *haddr);
int (*neigh_setup)(struct net_device *dev, struct neigh_parms *); int (*neigh_setup)(struct net_device *dev, struct neigh_parms *);
int (*accept_fastpath)(struct net_device *, struct dst_entry*); int (*accept_fastpath)(struct net_device *, struct dst_entry*);
#ifdef CONFIG_NETPOLL_RX #ifdef CONFIG_NETPOLL
int netpoll_rx; int netpoll_rx;
#endif #endif
#ifdef CONFIG_NET_POLL_CONTROLLER #ifdef CONFIG_NET_POLL_CONTROLLER
......
...@@ -1551,7 +1551,7 @@ int netif_rx(struct sk_buff *skb) ...@@ -1551,7 +1551,7 @@ int netif_rx(struct sk_buff *skb)
struct softnet_data *queue; struct softnet_data *queue;
unsigned long flags; unsigned long flags;
#ifdef CONFIG_NETPOLL_RX #ifdef CONFIG_NETPOLL
if (skb->dev->netpoll_rx && netpoll_rx(skb)) { if (skb->dev->netpoll_rx && netpoll_rx(skb)) {
kfree_skb(skb); kfree_skb(skb);
return NET_RX_DROP; return NET_RX_DROP;
...@@ -1746,7 +1746,7 @@ int netif_receive_skb(struct sk_buff *skb) ...@@ -1746,7 +1746,7 @@ int netif_receive_skb(struct sk_buff *skb)
int ret = NET_RX_DROP; int ret = NET_RX_DROP;
unsigned short type; unsigned short type;
#ifdef CONFIG_NETPOLL_RX #ifdef CONFIG_NETPOLL
if (skb->dev->netpoll_rx && skb->dev->poll && netpoll_rx(skb)) { if (skb->dev->netpoll_rx && skb->dev->poll && netpoll_rx(skb)) {
kfree_skb(skb); kfree_skb(skb);
return NET_RX_DROP; return NET_RX_DROP;
......
...@@ -607,9 +607,7 @@ int netpoll_setup(struct netpoll *np) ...@@ -607,9 +607,7 @@ int netpoll_setup(struct netpoll *np)
if(np->rx_hook) { if(np->rx_hook) {
unsigned long flags; unsigned long flags;
#ifdef CONFIG_NETPOLL_RX
np->dev->netpoll_rx = 1; np->dev->netpoll_rx = 1;
#endif
spin_lock_irqsave(&rx_list_lock, flags); spin_lock_irqsave(&rx_list_lock, flags);
list_add(&np->rx_list, &rx_list); list_add(&np->rx_list, &rx_list);
...@@ -624,18 +622,16 @@ int netpoll_setup(struct netpoll *np) ...@@ -624,18 +622,16 @@ int netpoll_setup(struct netpoll *np)
void netpoll_cleanup(struct netpoll *np) void netpoll_cleanup(struct netpoll *np)
{ {
if(np->rx_hook) { if (np->rx_hook) {
unsigned long flags; unsigned long flags;
spin_lock_irqsave(&rx_list_lock, flags); spin_lock_irqsave(&rx_list_lock, flags);
list_del(&np->rx_list); list_del(&np->rx_list);
#ifdef CONFIG_NETPOLL_RX
if (np->dev)
np->dev->netpoll_rx = 0;
#endif
spin_unlock_irqrestore(&rx_list_lock, flags); spin_unlock_irqrestore(&rx_list_lock, flags);
} }
if (np->dev)
np->dev->netpoll_rx = 0;
dev_put(np->dev); dev_put(np->dev);
np->dev = NULL; np->dev = NULL;
} }
......
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