Commit 06efce71 authored by Jim Baxter's avatar Jim Baxter Committed by David S. Miller
Browse files

net: fec: Fix Transmitted bytes counter



The tx_bytes field was not being updated so the
network card statistics showed 0.0B transmitted.
Signed-off-by: default avatarJim Baxter <jim_baxter@mentor.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 3b7b514f
......@@ -739,6 +739,7 @@ fec_enet_tx(struct net_device *ndev)
ndev->stats.tx_carrier_errors++;
} else {
ndev->stats.tx_packets++;
ndev->stats.tx_bytes += bdp->cbd_datlen;
}
if (unlikely(skb_shinfo(skb)->tx_flags & SKBTX_IN_PROGRESS) &&
......
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