netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] Fix byte stats on eql
@ 2012-03-25 10:01 David Woodhouse
  2012-03-25 17:28 ` David Miller
  2012-03-26  7:29 ` [PATCH] eql: Fix byte stats David Woodhouse
  0 siblings, 2 replies; 7+ messages in thread
From: David Woodhouse @ 2012-03-25 10:01 UTC (permalink / raw)
  To: netdev

[-- 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 --]

^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2012-03-28  2:48 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-03-25 10:01 [PATCH] Fix byte stats on eql David Woodhouse
2012-03-25 17:28 ` 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

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).