Skip to content

Commit

Permalink
tc35815: Fix rx_missed_errors count
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Atsushi Nemoto authored and David S. Miller committed Aug 6, 2009
1 parent c60a5cf commit 7bb82e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/tc35815.c
Original file line number Diff line number Diff line change
Expand Up @@ -2139,7 +2139,7 @@ static struct net_device_stats *tc35815_get_stats(struct net_device *dev)
(struct tc35815_regs __iomem *)dev->base_addr;
if (netif_running(dev))
/* Update the statistics from the device registers. */
dev->stats.rx_missed_errors = tc_readl(&tr->Miss_Cnt);
dev->stats.rx_missed_errors += tc_readl(&tr->Miss_Cnt);

return &dev->stats;
}
Expand Down

0 comments on commit 7bb82e8

Please sign in to comment.