From: Maxime Bizon <[EMAIL PROTECTED]> Some stats reported by ethtool -S on mv643xx_eth device are cleared between each call. This patch fixes it.
Signed-off-by: Maxime Bizon <[EMAIL PROTECTED]> Signed-off-by: Dale Farnsworth <[EMAIL PROTECTED]> --- Thanks Maxime. --- linux-2.6.18/drivers/net/mv643xx_eth.c.orig 2006-10-03 18:29:14.000000000 +0200 +++ linux-2.6.18/drivers/net/mv643xx_eth.c 2006-10-03 18:29:42.000000000 +0200 @@ -2156,7 +2156,7 @@ for (offset = ETH_MIB_BAD_OCTETS_RECEIVED; offset <= ETH_MIB_FRAMES_1024_TO_MAX_OCTETS; offset += 4) - *(u32 *)((char *)p + offset) = read_mib(mp, offset); + *(u32 *)((char *)p + offset) += read_mib(mp, offset); p->good_octets_sent += read_mib(mp, ETH_MIB_GOOD_OCTETS_SENT_LOW); p->good_octets_sent += @@ -2165,7 +2165,7 @@ for (offset = ETH_MIB_GOOD_FRAMES_SENT; offset <= ETH_MIB_LATE_COLLISION; offset += 4) - *(u32 *)((char *)p + offset) = read_mib(mp, offset); + *(u32 *)((char *)p + offset) += read_mib(mp, offset); } /* - To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html