diff options
-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 | /* |