Skip to contentSkip to conversation

via-rhine: NAPI poll enable

PATCH New Stephen Hemminger 1 participant 1 message Jul 26, 2006

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

drivers/net/via-rhine.c +2 -1
@@ -1048,6 +1048,8 @@
 
 	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 @@
 	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)