Skip to contentSkip to conversation

natsemi: fix netdev error acounting

PATCH Applied [email protected] 2 participants 2 messages Aug 10, 2007 – Aug 14, 2007

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

PATCH 13/18 natsemi: fix netdev error acounting

From: Andrew Morton <[email protected]>

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]>

---

 drivers/net/natsemi.c |    3 +++
 1 files changed, 3 insertions(+)
drivers/net/natsemi.c renamed from drivers/net/natsemi.c~natsemi-fix-netdev-error-acounting +3 -0
diff -puN drivers/net/natsemi.c~natsemi-fix-netdev-error-acounting 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);
 }

_

Applied
#1 lore raw
Quoted 5 lines · [email protected] wrote:

From: Andrew Morton <[email protected]>

When a detailed netdev error is counted, we also must account for it in the aggregated error count.

Quoted 7 lines

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]>

applied