projects
/
platform
/
kernel
/
linux-exynos.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2fa15bb
)
r6040: fix typo on stats update in tx path
author
Florian Fainelli
<florian@openwrt.org>
Wed, 11 Apr 2012 07:18:39 +0000
(07:18 +0000)
committer
David 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
patch
|
blob
|
history
diff --git
a/drivers/net/ethernet/rdc/r6040.c
b/drivers/net/ethernet/rdc/r6040.c
index
9ffbf6e
..
db33573
100644
(file)
--- a/
drivers/net/ethernet/rdc/r6040.c
+++ b/
drivers/net/ethernet/rdc/r6040.c
@@
-605,7
+605,7
@@
static void r6040_tx(struct net_device *dev)
err = ioread16(ioaddr + MLSR);
if (err & 0x0200)
- dev->stats.
r
x_fifo_errors++;
+ dev->stats.
t
x_fifo_errors++;
if (err & (0x2000 | 0x4000))
dev->stats.tx_carrier_errors++;