Commit a5ffe929 authored by François Romieu's avatar François Romieu Committed by Jeff Garzik

[netdrvr r8169] Driver forgot to update the transmitted bytes counter.

Originally done in rtl8169_start_xmit() by Realtek.
parent 5fed336c
......@@ -1299,10 +1299,13 @@ rtl8169_tx_interrupt(struct net_device *dev, struct rtl8169_private *tp,
int cur = dirty_tx % NUM_TX_DESC;
struct sk_buff *skb = tp->Tx_skbuff[cur];
/* FIXME: is it really accurate for TxErr ? */
tp->stats.tx_bytes += skb->len >= ETH_ZLEN ?
skb->len : ETH_ZLEN;
tp->stats.tx_packets++;
rtl8169_unmap_tx_skb(tp->pci_dev, tp->Tx_skbuff + cur,
tp->TxDescArray + cur);
dev_kfree_skb_irq(skb);
tp->stats.tx_packets++;
dirty_tx++;
tx_left--;
entry++;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment