summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorJim Baxter <jim_baxter@mentor.com>2013-06-27 18:25:08 (GMT)
committerDavid S. Miller <davem@davemloft.net>2013-07-02 08:46:12 (GMT)
commit06efce71166b222b6715c73700f5e9b228d68999 (patch)
tree2fe32645dd8f515424c3406d8b149eeebe1c4be9 /drivers
parent3b7b514f44bff05d26a6499c4d4fac2a83938e6e (diff)
downloadlinux-06efce71166b222b6715c73700f5e9b228d68999.tar.xz
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: Jim Baxter <jim_baxter@mentor.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/ethernet/freescale/fec_main.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/freescale/fec_main.c b/drivers/net/ethernet/freescale/fec_main.c
index 5664acd..aff8a5c 100644
--- a/drivers/net/ethernet/freescale/fec_main.c
+++ b/drivers/net/ethernet/freescale/fec_main.c
@@ -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) &&