korina: count RX DMA OVR as rx_fifo_error
authorPhil Sutter <phil@nwl.cc>
Sat, 29 May 2010 13:23:36 +0000 (13:23 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 2 Jun 2010 13:12:19 +0000 (06:12 -0700)
This way, RX DMA overruns (actually being caused by overrun of the
512byte input FIFO) show up in ifconfig output. The rx_fifo_errors
counter is unused otherwise.

Signed-off-by: Phil Sutter <phil@nwl.cc>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/korina.c

index 3e9b6b7..c7a9bef 100644 (file)
@@ -376,7 +376,7 @@ static int korina_rx(struct net_device *dev, int limit)
                if (devcs & ETH_RX_LE)
                        dev->stats.rx_length_errors++;
                if (devcs & ETH_RX_OVR)
-                       dev->stats.rx_over_errors++;
+                       dev->stats.rx_fifo_errors++;
                if (devcs & ETH_RX_CV)
                        dev->stats.rx_frame_errors++;
                if (devcs & ETH_RX_CES)