projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b4efe22
)
natsemi: fix netdev error acounting
author
Andrew Morton
<
[email protected]
>
Fri, 10 Aug 2007 21:05:23 +0000
(14:05 -0700)
committer
Jeff Garzik
<
[email protected]
>
Tue, 14 Aug 2007 05:36:39 +0000
(
01:36
-0400)
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 <
[email protected]
>
Cc: Jeff Garzik <
[email protected]
>
Cc: Chongfeng Hu <
[email protected]
>
Cc: Natalie Protasevich <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Jeff Garzik <
[email protected]
>
drivers/net/natsemi.c
patch
|
blob
|
history
diff --git
a/drivers/net/natsemi.c
b/drivers/net/natsemi.c
index 6bb48ba809649ca7e3ab940f42ba98ba1f9dc643..b47a12d684f9ed30dd0b8cd302c09259ee394636 100644
(file)
--- a/
drivers/net/natsemi.c
+++ b/
drivers/net/natsemi.c
@@
-2438,13
+2438,16
@@
static void netdev_error(struct net_device *dev, int intr_status)
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);
}