aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/macb.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/macb.c')
-rw-r--r--drivers/net/macb.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/drivers/net/macb.c b/drivers/net/macb.c
index 79ccb54ab00c..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;
@@ -1171,8 +1177,7 @@ static int __init macb_probe(struct platform_device *pdev)
1171 } 1177 }
1172 1178
1173 dev->irq = platform_get_irq(pdev, 0); 1179 dev->irq = platform_get_irq(pdev, 0);
1174 err = request_irq(dev->irq, macb_interrupt, IRQF_SAMPLE_RANDOM, 1180 err = request_irq(dev->irq, macb_interrupt, 0, dev->name, dev);
1175 dev->name, dev);
1176 if (err) { 1181 if (err) {
1177 printk(KERN_ERR 1182 printk(KERN_ERR
1178 "%s: Unable to request IRQ %d (error %d)\n", 1183 "%s: Unable to request IRQ %d (error %d)\n",