projects
/
kernel
/
kernel-generic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ac12259
)
[PATCH] cs89x0: collect tx_bytes statistics
author
Ian Campbell
<ijc@hellion.org.uk>
Thu, 28 Jul 2005 08:07:34 +0000
(
01:07
-0700)
committer
Linus Torvalds
<torvalds@g5.osdl.org>
Thu, 28 Jul 2005 15:39:02 +0000
(08:39 -0700)
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>
drivers/net/cs89x0.c
patch
|
blob
|
history
diff --git
a/drivers/net/cs89x0.c
b/drivers/net/cs89x0.c
index
b96d6fb
..
2c6dc24
100644
(file)
--- 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)
/* Write the contents of the packet */
outsw(dev->base_addr + TX_FRAME_PORT,skb->data,(skb->len+1) >>1);
spin_unlock_irq(&lp->lock);
+ lp->stats.tx_bytes += skb->len;
dev->trans_start = jiffies;
dev_kfree_skb (skb);