[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <200708102105.l7AL5NBY008983@imap1.linux-foundation.org>
Date: Fri, 10 Aug 2007 14:05:23 -0700
From: akpm@...ux-foundation.org
To: jeff@...zik.org
Cc: netdev@...r.kernel.org, akpm@...ux-foundation.org,
loveminix@...oo.com.cn, protasnb@...il.com, thockin@...kin.org
Subject: [patch 13/18] natsemi: fix netdev error acounting
From: Andrew Morton <akpm@...ux-foundation.org>
When a detailed netdev error is counted, we also must account for it in the
aggregated error count.
Addresses http://bugzilla.kernel.org/show_bug.cgi?id=8106
Cc: Tim Hockin <thockin@...kin.org>
Cc: Jeff Garzik <jeff@...zik.org>
Cc: Chongfeng Hu <loveminix@...oo.com.cn>
Cc: Natalie Protasevich <protasnb@...il.com>
Signed-off-by: Andrew Morton <akpm@...ux-foundation.org>
---
drivers/net/natsemi.c | 3 +++
1 files changed, 3 insertions(+)
diff -puN drivers/net/natsemi.c~natsemi-fix-netdev-error-acounting drivers/net/natsemi.c
--- a/drivers/net/natsemi.c~natsemi-fix-netdev-error-acounting
+++ a/drivers/net/natsemi.c
@@ -2438,13 +2438,16 @@ static void netdev_error(struct net_devi
dev->name);
}
np->stats.rx_fifo_errors++;
+ np->stats.rx_errors++;
}
/* Hmmmmm, it's not clear how to recover from PCI faults. */
if (intr_status & IntrPCIErr) {
printk(KERN_NOTICE "%s: PCI error %#08x\n", dev->name,
intr_status & IntrPCIErr);
np->stats.tx_fifo_errors++;
+ np->stats.tx_errors++;
np->stats.rx_fifo_errors++;
+ np->stats.rx_errors++;
}
spin_unlock(&np->lock);
}
_
-
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists