Skip to content

Commit

Permalink
[PATCH] e1000: Enable polling before enabling interrupts
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Malli Chilakala authored and Jeff Garzik committed May 13, 2005
1 parent fa4f7ef commit 5de5562
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/net/e1000/e1000_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -328,11 +328,12 @@ e1000_up(struct e1000_adapter *adapter)
return err;

mod_timer(&adapter->watchdog_timer, jiffies);
e1000_irq_enable(adapter);

#ifdef CONFIG_E1000_NAPI
netif_poll_enable(netdev);
#endif
e1000_irq_enable(adapter);

return 0;
}

Expand Down

0 comments on commit 5de5562

Please sign in to comment.