netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [Patch 2/16 2.5] ixgb: Fix memory leak in NAPI mode. Avoid unnecessary work in NAPI Rx cleanup
@ 2004-10-15 13:54 Ganesh Venkatesan
  2004-10-15 17:03 ` Jeff Garzik
  0 siblings, 1 reply; 2+ messages in thread
From: Ganesh Venkatesan @ 2004-10-15 13:54 UTC (permalink / raw)
  To: jgarzik@pobox.com; +Cc: netdev

diff -up net-drivers-2.6/drivers/net/ixgb/ixgb_main.c net-drivers-2.6/drivers/net/ixgb.new/ixgb_main.c
--- net-drivers-2.6/drivers/net/ixgb/ixgb_main.c	2004-10-05 15:50:18.000000000 -0700
+++ net-drivers-2.6/drivers/net/ixgb.new/ixgb_main.c	2004-10-05 17:55:48.000000000 -0700
@@ -1790,6 +1790,12 @@ ixgb_clean_rx_irq(struct ixgb_adapter *a
 
 	while (rx_desc->status & IXGB_RX_DESC_STATUS_DD) {
 
+#ifdef CONFIG_IXGB_NAPI
+		if(*work_done >= work_to_do)
+			break;
+
+		(*work_done)++;
+#endif
 		skb = buffer_info->skb;
 		prefetch(skb->data);
 
@@ -1807,12 +1824,6 @@ ixgb_clean_rx_irq(struct ixgb_adapter *a
 		next_skb = next_buffer->skb;
 		prefetch(next_skb);
 
-#ifdef CONFIG_IXGB_NAPI
-		if (*work_done >= work_to_do)
-			break;
-
-		(*work_done)++;
-#endif
 
 		cleaned = TRUE;
 

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2004-10-15 17:03 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-10-15 13:54 [Patch 2/16 2.5] ixgb: Fix memory leak in NAPI mode. Avoid unnecessary work in NAPI Rx cleanup Ganesh Venkatesan
2004-10-15 17:03 ` Jeff Garzik

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).