Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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) &&