diff options
author | Maxime Bizon <mbizon@freebox.fr> | 2006-10-03 13:27:10 -0400 |
---|---|---|
committer | Jeff Garzik <jeff@garzik.org> | 2006-10-05 06:43:24 -0400 |
commit | 70fbf32703a9c4d3403663d1fc24fd8afc76d56f (patch) | |
tree | 7d15c14bc89a2d04288d83393fc7b7b4cb098c22 /drivers/net | |
parent | 751ae21c6cd1493e3d0a4935b08fb298b9d89773 (diff) |
[PATCH] mv643xx_eth: Fix ethtool stats
Some stats reported by ethtool -S on mv643xx_eth device are cleared
between each call. This patch fixes it.
Signed-off-by: Maxime Bizon <mbizon@freebox.fr>
Signed-off-by: Dale Farnsworth <dale@farnsworth.org>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/mv643xx_eth.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/mv643xx_eth.c b/drivers/net/mv643xx_eth.c index 7f8e5ad1b704..eccedf3e627d 100644 --- a/drivers/net/mv643xx_eth.c +++ b/drivers/net/mv643xx_eth.c | |||
@@ -2156,7 +2156,7 @@ static void eth_update_mib_counters(struct mv643xx_private *mp) | |||
2156 | for (offset = ETH_MIB_BAD_OCTETS_RECEIVED; | 2156 | for (offset = ETH_MIB_BAD_OCTETS_RECEIVED; |
2157 | offset <= ETH_MIB_FRAMES_1024_TO_MAX_OCTETS; | 2157 | offset <= ETH_MIB_FRAMES_1024_TO_MAX_OCTETS; |
2158 | offset += 4) | 2158 | offset += 4) |
2159 | *(u32 *)((char *)p + offset) = read_mib(mp, offset); | 2159 | *(u32 *)((char *)p + offset) += read_mib(mp, offset); |
2160 | 2160 | ||
2161 | p->good_octets_sent += read_mib(mp, ETH_MIB_GOOD_OCTETS_SENT_LOW); | 2161 | p->good_octets_sent += read_mib(mp, ETH_MIB_GOOD_OCTETS_SENT_LOW); |
2162 | p->good_octets_sent += | 2162 | p->good_octets_sent += |
@@ -2165,7 +2165,7 @@ static void eth_update_mib_counters(struct mv643xx_private *mp) | |||
2165 | for (offset = ETH_MIB_GOOD_FRAMES_SENT; | 2165 | for (offset = ETH_MIB_GOOD_FRAMES_SENT; |
2166 | offset <= ETH_MIB_LATE_COLLISION; | 2166 | offset <= ETH_MIB_LATE_COLLISION; |
2167 | offset += 4) | 2167 | offset += 4) |
2168 | *(u32 *)((char *)p + offset) = read_mib(mp, offset); | 2168 | *(u32 *)((char *)p + offset) += read_mib(mp, offset); |
2169 | } | 2169 | } |
2170 | 2170 | ||
2171 | /* | 2171 | /* |