From: Stephen Hemminger Date: Tue, 15 Aug 2006 06:00:18 +0000 (-0700) Subject: [PATCH] via-rhine: NAPI poll enable X-Git-Tag: v2.6.18-rc5~61^2~16 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ab1976682f31661a898b92593bccfeae14d0a0ae;p=platform%2Fkernel%2Flinux-exynos.git [PATCH] via-rhine: NAPI poll enable The poll_enable should be in init_registers before enabling interrupts, not in tx_timeout. Thanks for spotting it Roger. Signed-off-by: Stephen Hemminger Cc: Roger Luethi Signed-off-by: Andrew Morton Signed-off-by: Jeff Garzik --- diff --git a/drivers/net/via-rhine.c b/drivers/net/via-rhine.c index fee8240..fda367b 100644 --- a/drivers/net/via-rhine.c +++ b/drivers/net/via-rhine.c @@ -1048,6 +1048,8 @@ static void init_registers(struct net_device *dev) rhine_set_rx_mode(dev); + netif_poll_enable(dev); + /* Enable interrupts by setting the interrupt mask. */ iowrite16(IntrRxDone | IntrRxErr | IntrRxEmpty| IntrRxOverflow | IntrRxDropped | IntrRxNoBuf | IntrTxAborted | @@ -1199,7 +1201,6 @@ static void rhine_tx_timeout(struct net_device *dev) dev->trans_start = jiffies; rp->stats.tx_errors++; netif_wake_queue(dev); - netif_poll_enable(dev); } static int rhine_start_tx(struct sk_buff *skb, struct net_device *dev)