diff options
Diffstat (limited to 'net/core/netpoll.c')
-rw-r--r-- | net/core/netpoll.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/net/core/netpoll.c b/net/core/netpoll.c index 9e3aea0bd36..b1d5acd2fc7 100644 --- a/net/core/netpoll.c +++ b/net/core/netpoll.c | |||
@@ -39,7 +39,6 @@ static struct sk_buff_head skb_pool; | |||
39 | static atomic_t trapped; | 39 | static atomic_t trapped; |
40 | 40 | ||
41 | #define USEC_PER_POLL 50 | 41 | #define USEC_PER_POLL 50 |
42 | #define NETPOLL_RX_ENABLED 1 | ||
43 | 42 | ||
44 | #define MAX_SKB_SIZE \ | 43 | #define MAX_SKB_SIZE \ |
45 | (MAX_UDP_CHUNK + sizeof(struct udphdr) + \ | 44 | (MAX_UDP_CHUNK + sizeof(struct udphdr) + \ |
@@ -675,7 +674,6 @@ int netpoll_setup(struct netpoll *np) | |||
675 | goto release; | 674 | goto release; |
676 | } | 675 | } |
677 | 676 | ||
678 | npinfo->rx_flags = 0; | ||
679 | npinfo->rx_np = NULL; | 677 | npinfo->rx_np = NULL; |
680 | 678 | ||
681 | spin_lock_init(&npinfo->rx_lock); | 679 | spin_lock_init(&npinfo->rx_lock); |
@@ -757,7 +755,6 @@ int netpoll_setup(struct netpoll *np) | |||
757 | 755 | ||
758 | if (np->rx_hook) { | 756 | if (np->rx_hook) { |
759 | spin_lock_irqsave(&npinfo->rx_lock, flags); | 757 | spin_lock_irqsave(&npinfo->rx_lock, flags); |
760 | npinfo->rx_flags |= NETPOLL_RX_ENABLED; | ||
761 | npinfo->rx_np = np; | 758 | npinfo->rx_np = np; |
762 | spin_unlock_irqrestore(&npinfo->rx_lock, flags); | 759 | spin_unlock_irqrestore(&npinfo->rx_lock, flags); |
763 | } | 760 | } |
@@ -799,7 +796,6 @@ void netpoll_cleanup(struct netpoll *np) | |||
799 | if (npinfo->rx_np == np) { | 796 | if (npinfo->rx_np == np) { |
800 | spin_lock_irqsave(&npinfo->rx_lock, flags); | 797 | spin_lock_irqsave(&npinfo->rx_lock, flags); |
801 | npinfo->rx_np = NULL; | 798 | npinfo->rx_np = NULL; |
802 | npinfo->rx_flags &= ~NETPOLL_RX_ENABLED; | ||
803 | spin_unlock_irqrestore(&npinfo->rx_lock, flags); | 799 | spin_unlock_irqrestore(&npinfo->rx_lock, flags); |
804 | } | 800 | } |
805 | 801 | ||