From: Brent Cook <bcook@bpointsys.com>
To: netdev@vger.kernel.org
Subject: [PATCH 2/3] mv643xx fixes - Increment TX bytes statistics counter
Date: Tue, 27 Jun 2006 09:52:05 -0500 [thread overview]
Message-ID: <200606270952.05191.bcook@bpointsys.com> (raw)
This fixes a simple typo from the last set of driver simplifications patches.
Now TX bytes stats are actually incremented rather than just containing the
size of the last packet sent.
Signed-off-by: Brent Cook <bcook@bpointsys.com>
--- a/drivers/net/mv643xx_eth.c 2006-05-04 00:51:47.000000000 -0500
+++ b/drivers/net/mv643xx_eth.c 2006-06-27 09:20:58.000000000 -0500
@@ -1211,7 +1218,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;
reply other threads:[~2006-06-27 14:51 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200606270952.05191.bcook@bpointsys.com \
--to=bcook@bpointsys.com \
--cc=netdev@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).