r6040: fix typo on stats update in tx path
authorFlorian Fainelli <florian@openwrt.org>
Wed, 11 Apr 2012 07:18:39 +0000 (07:18 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 12 Apr 2012 20:06:24 +0000 (16:06 -0400)
We are currently updating the rx fifo error counter in the tx path while
it should have been the tx fifo error counter, fix that.

Signed-off-by: Florian Fainelli <florian@openwrt.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/rdc/r6040.c

index 9ffbf6e39b323ae051ea7a435dedecb9015ae050..db33573efcf62cfa71a6d0ccb96993e3d49be41c 100644 (file)
@@ -605,7 +605,7 @@ static void r6040_tx(struct net_device *dev)
                err = ioread16(ioaddr + MLSR);
 
                if (err & 0x0200)
-                       dev->stats.rx_fifo_errors++;
+                       dev->stats.tx_fifo_errors++;
                if (err & (0x2000 | 0x4000))
                        dev->stats.tx_carrier_errors++;