Skip to content

Commit

Permalink
[PATCH] cs89x0: collect tx_bytes statistics
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Ian Campbell authored and Linus Torvalds committed Jul 28, 2005
1 parent ac12259 commit e1699f5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/net/cs89x0.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit e1699f5

Please sign in to comment.