From: David Woodhouse <dwmw2@infradead.org>
To: netdev@vger.kernel.org
Subject: [PATCH] Fix byte stats on eql
Date: Sun, 25 Mar 2012 11:01:40 +0100 [thread overview]
Message-ID: <1332669700.32446.142.camel@shinybook.infradead.org> (raw)
[-- Attachment #1: Type: text/plain, Size: 648 bytes --]
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
diff --git a/drivers/net/eql.c b/drivers/net/eql.c
index a59cf96..f2d3741 100644
--- a/drivers/net/eql.c
+++ b/drivers/net/eql.c
@@ -345,6 +345,7 @@ static netdev_tx_t eql_slave_xmit(struct sk_buff
*skb, struct net_device *dev)
slave->bytes_queued += skb->len;
dev_queue_xmit(skb);
dev->stats.tx_packets++;
+ dev->stats.tx_bytes += skb->len;
} else {
dev->stats.tx_dropped++;
dev_kfree_skb(skb);
--
David Woodhouse Open Source Technology Centre
David.Woodhouse@intel.com Intel Corporation
[-- Attachment #2: smime.p7s --]
[-- Type: application/x-pkcs7-signature, Size: 5818 bytes --]
next reply other threads:[~2012-03-25 10:01 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-03-25 10:01 David Woodhouse [this message]
2012-03-25 17:28 ` [PATCH] Fix byte stats on eql David Miller
2012-03-26 7:29 ` [PATCH] eql: Fix byte stats David Woodhouse
2012-03-27 8:12 ` Eric Dumazet
2012-03-27 8:17 ` David Woodhouse
2012-03-27 8:52 ` [PATCH] eql: dont rely on HZ=100 Eric Dumazet
2012-03-28 2:47 ` David Miller
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=1332669700.32446.142.camel@shinybook.infradead.org \
--to=dwmw2@infradead.org \
--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).