diff options
Diffstat (limited to 'net/core/netpoll.c')
-rw-r--r-- | net/core/netpoll.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/net/core/netpoll.c b/net/core/netpoll.c index 96fb0519eb7a..755414cd49d1 100644 --- a/net/core/netpoll.c +++ b/net/core/netpoll.c | |||
@@ -134,9 +134,11 @@ static int poll_one_napi(struct netpoll_info *npinfo, | |||
134 | 134 | ||
135 | npinfo->rx_flags |= NETPOLL_RX_DROP; | 135 | npinfo->rx_flags |= NETPOLL_RX_DROP; |
136 | atomic_inc(&trapped); | 136 | atomic_inc(&trapped); |
137 | set_bit(NAPI_STATE_NPSVC, &napi->state); | ||
137 | 138 | ||
138 | work = napi->poll(napi, budget); | 139 | work = napi->poll(napi, budget); |
139 | 140 | ||
141 | clear_bit(NAPI_STATE_NPSVC, &napi->state); | ||
140 | atomic_dec(&trapped); | 142 | atomic_dec(&trapped); |
141 | npinfo->rx_flags &= ~NETPOLL_RX_DROP; | 143 | npinfo->rx_flags &= ~NETPOLL_RX_DROP; |
142 | 144 | ||