|
@@ -39,7 +39,6 @@ static struct sk_buff_head skb_pool;
|
|
|
static atomic_t trapped;
|
|
|
|
|
|
#define USEC_PER_POLL 50
|
|
|
-#define NETPOLL_RX_ENABLED 1
|
|
|
|
|
|
#define MAX_SKB_SIZE \
|
|
|
(MAX_UDP_CHUNK + sizeof(struct udphdr) + \
|
|
@@ -675,7 +674,6 @@ int netpoll_setup(struct netpoll *np)
|
|
|
goto release;
|
|
|
}
|
|
|
|
|
|
- npinfo->rx_flags = 0;
|
|
|
npinfo->rx_np = NULL;
|
|
|
|
|
|
spin_lock_init(&npinfo->rx_lock);
|
|
@@ -757,7 +755,6 @@ int netpoll_setup(struct netpoll *np)
|
|
|
|
|
|
if (np->rx_hook) {
|
|
|
spin_lock_irqsave(&npinfo->rx_lock, flags);
|
|
|
- npinfo->rx_flags |= NETPOLL_RX_ENABLED;
|
|
|
npinfo->rx_np = np;
|
|
|
spin_unlock_irqrestore(&npinfo->rx_lock, flags);
|
|
|
}
|
|
@@ -799,7 +796,6 @@ void netpoll_cleanup(struct netpoll *np)
|
|
|
if (npinfo->rx_np == np) {
|
|
|
spin_lock_irqsave(&npinfo->rx_lock, flags);
|
|
|
npinfo->rx_np = NULL;
|
|
|
- npinfo->rx_flags &= ~NETPOLL_RX_ENABLED;
|
|
|
spin_unlock_irqrestore(&npinfo->rx_lock, flags);
|
|
|
}
|
|
|
|