aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/net/macb.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/drivers/net/macb.c b/drivers/net/macb.c
index 2cb4e792f871..629bd2649c0c 100644
--- a/drivers/net/macb.c
+++ b/drivers/net/macb.c
@@ -576,6 +576,11 @@ static irqreturn_t macb_interrupt(int irq, void *dev_id)
576 * add that if/when we get our hands on a full-blown MII PHY. 576 * add that if/when we get our hands on a full-blown MII PHY.
577 */ 577 */
578 578
579 if (status & MACB_BIT(ISR_ROVR)) {
580 /* We missed at least one packet */
581 bp->hw_stats.rx_overruns++;
582 }
583
579 if (status & MACB_BIT(HRESP)) { 584 if (status & MACB_BIT(HRESP)) {
580 /* 585 /*
581 * TODO: Reset the hardware, and maybe move the printk 586 * TODO: Reset the hardware, and maybe move the printk
@@ -1024,7 +1029,8 @@ static struct net_device_stats *macb_get_stats(struct net_device *dev)
1024 hwstat->rx_jabbers + 1029 hwstat->rx_jabbers +
1025 hwstat->rx_undersize_pkts + 1030 hwstat->rx_undersize_pkts +
1026 hwstat->rx_length_mismatch); 1031 hwstat->rx_length_mismatch);
1027 nstat->rx_over_errors = hwstat->rx_resource_errors; 1032 nstat->rx_over_errors = hwstat->rx_resource_errors +
1033 hwstat->rx_overruns;
1028 nstat->rx_crc_errors = hwstat->rx_fcs_errors; 1034 nstat->rx_crc_errors = hwstat->rx_fcs_errors;
1029 nstat->rx_frame_errors = hwstat->rx_align_errors; 1035 nstat->rx_frame_errors = hwstat->rx_align_errors;
1030 nstat->rx_fifo_errors = hwstat->rx_overruns; 1036 nstat->rx_fifo_errors = hwstat->rx_overruns;