projects/linux·commit e1699f50

[PATCH] cs89x0: collect tx_bytes statistics

e1699f50 · Ian Campbell <[email protected]> · 2005-07-28 01:07:34 -07:00

Signed-off-by: Ian Campbell <[email protected]>
Cc: Jeff Garzik <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Commit
e1699f508ab5098de4b258268fa8913db38d9d35
Parents
ac12259f

Changes

1 files changed · +1 −0

FileStatusAddDelContent
drivers/net/cs89x0.cmodified+1−0View file

drivers/net/cs89x0.c

View file
diff --git a/drivers/net/cs89x0.c b/drivers/net/cs89x0.c
index b96d6fb..2c6dc24 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)
/* 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);