diff options
Diffstat (limited to 'drivers/net/igb')
-rw-r--r-- | drivers/net/igb/igb_main.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/net/igb/igb_main.c b/drivers/net/igb/igb_main.c index 2cb267fc9c7e..4ff242de981e 100644 --- a/drivers/net/igb/igb_main.c +++ b/drivers/net/igb/igb_main.c | |||
@@ -4187,7 +4187,6 @@ static int igb_poll(struct napi_struct *napi, int budget) | |||
4187 | { | 4187 | { |
4188 | struct igb_ring *rx_ring = container_of(napi, struct igb_ring, napi); | 4188 | struct igb_ring *rx_ring = container_of(napi, struct igb_ring, napi); |
4189 | struct igb_adapter *adapter = rx_ring->adapter; | 4189 | struct igb_adapter *adapter = rx_ring->adapter; |
4190 | struct net_device *netdev = adapter->netdev; | ||
4191 | int work_done = 0; | 4190 | int work_done = 0; |
4192 | 4191 | ||
4193 | #ifdef CONFIG_IGB_DCA | 4192 | #ifdef CONFIG_IGB_DCA |
@@ -4206,7 +4205,7 @@ static int igb_poll(struct napi_struct *napi, int budget) | |||
4206 | } | 4205 | } |
4207 | 4206 | ||
4208 | /* If not enough Rx work done, exit the polling mode */ | 4207 | /* If not enough Rx work done, exit the polling mode */ |
4209 | if ((work_done < budget) || !netif_running(netdev)) { | 4208 | if (work_done < budget) { |
4210 | napi_complete(napi); | 4209 | napi_complete(napi); |
4211 | igb_rx_irq_enable(rx_ring); | 4210 | igb_rx_irq_enable(rx_ring); |
4212 | } | 4211 | } |