Patchwork Fix byte stats on eql

login
register
mail settings
Submitter David Woodhouse
Date March 25, 2012, 10:01 a.m.
Message ID <1332669700.32446.142.camel@shinybook.infradead.org>
Download mbox | patch
Permalink /patch/148555/
State Changes Requested
Delegated to: David Miller
Headers show

Comments

David Woodhouse - March 25, 2012, 10:01 a.m.
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>

 		dev_kfree_skb(skb);
David Miller - March 25, 2012, 5:28 p.m.
From: David Woodhouse <dwmw2@infradead.org>
Date: Sun, 25 Mar 2012 11:01:40 +0100

> Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>

Please use a driver/subsystem prefix in your Subject lines,
in this case "eql: Fix byte stats." would have been appropriate.

> @@ -345,6 +345,7 @@ static netdev_tx_t eql_slave_xmit(struct sk_buff
> *skb, struct net_device *dev)

Patch corrupted by your email client.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Patch

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++;