aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/tc35815.c
diff options
context:
space:
mode:
authorAtsushi Nemoto <anemo@mba.ocn.ne.jp>2009-08-06 00:41:48 -0400
committerDavid S. Miller <davem@davemloft.net>2009-08-06 16:14:24 -0400
commit7bb82e834cc9cc95512287a9bf637719557674a0 (patch)
treee10eaaa6267f6bffb3f96bdfc8c3b50be650cb93 /drivers/net/tc35815.c
parentc60a5cf7af0a94cf8b09ca22796affa5f5f0669a (diff)
tc35815: Fix rx_missed_errors count
The Miss_Cnt register is cleared by reading. Accumulate its value to rx_missed_errors count. Signed-off-by: Atsushi Nemoto <anemo@mba.ocn.ne.jp> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/tc35815.c')
-rw-r--r--drivers/net/tc35815.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/tc35815.c b/drivers/net/tc35815.c
index f42aaf72cc95..411cc0e5f7a4 100644
--- a/drivers/net/tc35815.c
+++ b/drivers/net/tc35815.c
@@ -2139,7 +2139,7 @@ static struct net_device_stats *tc35815_get_stats(struct net_device *dev)
2139 (struct tc35815_regs __iomem *)dev->base_addr; 2139 (struct tc35815_regs __iomem *)dev->base_addr;
2140 if (netif_running(dev)) 2140 if (netif_running(dev))
2141 /* Update the statistics from the device registers. */ 2141 /* Update the statistics from the device registers. */
2142 dev->stats.rx_missed_errors = tc_readl(&tr->Miss_Cnt); 2142 dev->stats.rx_missed_errors += tc_readl(&tr->Miss_Cnt);
2143 2143
2144 return &dev->stats; 2144 return &dev->stats;
2145} 2145}