On Thu, Jul 19, 2007 at 04:55:36AM +0000, Steven J. Hill wrote:
> Fix the TX bytes statistics counter to, um, actually count.
> 
> Signed-off-by: Steven J. Hill <[EMAIL PROTECTED]>
> ---

> --- linux-2.6.22.1/drivers/net/mv643xx_eth.c  2007-07-18 21:51:49.000000000 
> -0500
> +++ linux-2.6.22.1-rci/drivers/net/mv643xx_eth.c      2007-07-18 
> 21:44:07.000000000 -0500
> @@ -1506,7 +1511,7 @@
>       spin_lock_irqsave(&mp->lock, flags);
>  
>       eth_tx_submit_descs_for_skb(mp, skb);
> -     stats->tx_bytes = skb->len;
> +     stats->tx_bytes += skb->len;
>       stats->tx_packets++;
>       dev->trans_start = jiffies;
>  

Good fix, thanks.  Please resubmit per the guidelines in
Documentation/SubmittingPatches.

-Dale
-
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

Reply via email to