diff options
Diffstat (limited to 'drivers/net/tulip/interrupt.c')
| -rw-r--r-- | drivers/net/tulip/interrupt.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/drivers/net/tulip/interrupt.c b/drivers/net/tulip/interrupt.c index 365331446387..6284afd14bbb 100644 --- a/drivers/net/tulip/interrupt.c +++ b/drivers/net/tulip/interrupt.c | |||
| @@ -117,9 +117,6 @@ int tulip_poll(struct napi_struct *napi, int budget) | |||
| 117 | int received = 0; | 117 | int received = 0; |
| 118 | #endif | 118 | #endif |
| 119 | 119 | ||
| 120 | if (!netif_running(dev)) | ||
| 121 | goto done; | ||
| 122 | |||
| 123 | #ifdef CONFIG_TULIP_NAPI_HW_MITIGATION | 120 | #ifdef CONFIG_TULIP_NAPI_HW_MITIGATION |
| 124 | 121 | ||
| 125 | /* that one buffer is needed for mit activation; or might be a | 122 | /* that one buffer is needed for mit activation; or might be a |
| @@ -151,7 +148,8 @@ int tulip_poll(struct napi_struct *napi, int budget) | |||
| 151 | if (tulip_debug > 5) | 148 | if (tulip_debug > 5) |
| 152 | printk(KERN_DEBUG "%s: In tulip_rx(), entry %d %8.8x.\n", | 149 | printk(KERN_DEBUG "%s: In tulip_rx(), entry %d %8.8x.\n", |
| 153 | dev->name, entry, status); | 150 | dev->name, entry, status); |
| 154 | if (work_done++ >= budget) | 151 | |
| 152 | if (++work_done >= budget) | ||
| 155 | goto not_done; | 153 | goto not_done; |
| 156 | 154 | ||
| 157 | if ((status & 0x38008300) != 0x0300) { | 155 | if ((status & 0x38008300) != 0x0300) { |
| @@ -260,8 +258,6 @@ int tulip_poll(struct napi_struct *napi, int budget) | |||
| 260 | * finally: amount of IO did not increase at all. */ | 258 | * finally: amount of IO did not increase at all. */ |
| 261 | } while ((ioread32(tp->base_addr + CSR5) & RxIntr)); | 259 | } while ((ioread32(tp->base_addr + CSR5) & RxIntr)); |
| 262 | 260 | ||
| 263 | done: | ||
| 264 | |||
| 265 | #ifdef CONFIG_TULIP_NAPI_HW_MITIGATION | 261 | #ifdef CONFIG_TULIP_NAPI_HW_MITIGATION |
| 266 | 262 | ||
| 267 | /* We use this simplistic scheme for IM. It's proven by | 263 | /* We use this simplistic scheme for IM. It's proven by |
