diff options
author | Jim Baxter <jim_baxter@mentor.com> | 2013-06-27 19:25:08 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-07-02 01:46:12 -0700 |
commit | 06efce71166b222b6715c73700f5e9b228d68999 (patch) | |
tree | 2fe32645dd8f515424c3406d8b149eeebe1c4be9 | |
parent | 3b7b514f44bff05d26a6499c4d4fac2a83938e6e (diff) | |
download | blackbird-obmc-linux-06efce71166b222b6715c73700f5e9b228d68999.tar.gz blackbird-obmc-linux-06efce71166b222b6715c73700f5e9b228d68999.zip |
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>
-rw-r--r-- | drivers/net/ethernet/freescale/fec_main.c | 1 |
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) && |