summaryrefslogtreecommitdiff
path: root/drivers/net/ethernet/freescale
diff options
context:
space:
mode:
authorJim Baxter <jim_baxter@mentor.com>2013-06-27 22:25:08 +0400
committerDavid S. Miller <davem@davemloft.net>2013-07-02 12:46:12 +0400
commit06efce71166b222b6715c73700f5e9b228d68999 (patch)
tree2fe32645dd8f515424c3406d8b149eeebe1c4be9 /drivers/net/ethernet/freescale
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/net/ethernet/freescale')
-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 5664acd8e0f4..aff8a5cd17c7 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) &&