[PATCH] cs89x0: collect tx_bytes statistics
[linux-2.6.git] / drivers / net / cs89x0.c
index b96d6fb1929ededc702ec46d90858034ea4c660f..2c6dc24c37288d3136880efd7cbea02a982e6fa4 100644 (file)
@@ -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);