diff options
author | Malli Chilakala <mallikarjuna.chilakala@intel.com> | 2005-04-28 22:39:30 -0400 |
---|---|---|
committer | Jeff Garzik <jgarzik@pobox.com> | 2005-05-12 20:48:53 -0400 |
commit | 5de556249fde97493a4c79dbf8979ace0f76789f (patch) | |
tree | a64f68956aeaad6ebf6409a5b5cbd38a4541c7a8 /drivers/net/e1000/e1000_main.c | |
parent | fa4f7ef3aaa6cee6b04ebe90266ee893e0b2ce07 (diff) |
[PATCH] e1000: Enable polling before enabling interrupts
Enable polling before enabling interrupts -- avoids (in NAPI mode) entering the ISR and returning without doing any work because polling is not enabled. [romieu@fr.zoriel.com]
Signed-off-by: Mallikarjuna R Chilakala <mallikarjuna.chilakala@intel.com>
Signed-off-by: Ganesh Venkatesan <ganesh.venkatesan@intel.com>
Signed-off-by: John Ronciak <john.ronciak@intel.com>
diff -up net-drivers-2.6/drivers/net/e1000/e1000_main.c net-drivers-2.6/drivers/net/e1000.new/e1000_main.c
Diffstat (limited to 'drivers/net/e1000/e1000_main.c')
-rw-r--r-- | drivers/net/e1000/e1000_main.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/e1000/e1000_main.c b/drivers/net/e1000/e1000_main.c index 03e3ec74f3fb..9927106b76c7 100644 --- a/drivers/net/e1000/e1000_main.c +++ b/drivers/net/e1000/e1000_main.c | |||
@@ -328,11 +328,12 @@ e1000_up(struct e1000_adapter *adapter) | |||
328 | return err; | 328 | return err; |
329 | 329 | ||
330 | mod_timer(&adapter->watchdog_timer, jiffies); | 330 | mod_timer(&adapter->watchdog_timer, jiffies); |
331 | e1000_irq_enable(adapter); | ||
332 | 331 | ||
333 | #ifdef CONFIG_E1000_NAPI | 332 | #ifdef CONFIG_E1000_NAPI |
334 | netif_poll_enable(netdev); | 333 | netif_poll_enable(netdev); |
335 | #endif | 334 | #endif |
335 | e1000_irq_enable(adapter); | ||
336 | |||
336 | return 0; | 337 | return 0; |
337 | } | 338 | } |
338 | 339 | ||