diff options
author | Ian Campbell <ijc@hellion.org.uk> | 2005-07-28 04:07:34 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2005-07-28 11:39:02 -0400 |
commit | e1699f508ab5098de4b258268fa8913db38d9d35 (patch) | |
tree | 4435afeae1b6e4e90e787ca1af1701fa9186b2f1 /drivers | |
parent | ac12259f2984d96454affc147f9d63f2ac2ac1f8 (diff) |
[PATCH] cs89x0: collect tx_bytes statistics
Signed-off-by: Ian Campbell <icampbell@arcom.com>
Cc: Jeff Garzik <jgarzik@pobox.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/cs89x0.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/cs89x0.c b/drivers/net/cs89x0.c index b96d6fb1929e..2c6dc24c3728 100644 --- a/drivers/net/cs89x0.c +++ b/drivers/net/cs89x0.c | |||
@@ -1450,6 +1450,7 @@ static int net_send_packet(struct sk_buff *skb, struct net_device *dev) | |||
1450 | /* Write the contents of the packet */ | 1450 | /* Write the contents of the packet */ |
1451 | outsw(dev->base_addr + TX_FRAME_PORT,skb->data,(skb->len+1) >>1); | 1451 | outsw(dev->base_addr + TX_FRAME_PORT,skb->data,(skb->len+1) >>1); |
1452 | spin_unlock_irq(&lp->lock); | 1452 | spin_unlock_irq(&lp->lock); |
1453 | lp->stats.tx_bytes += skb->len; | ||
1453 | dev->trans_start = jiffies; | 1454 | dev->trans_start = jiffies; |
1454 | dev_kfree_skb (skb); | 1455 | dev_kfree_skb (skb); |
1455 | 1456 | ||