Skip to content

Commit

Permalink
r6040: fix typo on stats update in tx path
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Florian Fainelli authored and David S. Miller committed Apr 12, 2012
1 parent 2fa15bb commit 3440ecc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/ethernet/rdc/r6040.c
Original file line number Diff line number Diff line change
Expand Up @@ -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++;

Expand Down

0 comments on commit 3440ecc

Please sign in to comment.