ixgbe: fix Tx bytes statistics with link down
authorHarry van Haaren <harry.van.haaren@intel.com>
Tue, 1 Dec 2015 10:25:40 +0000 (10:25 +0000)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Sun, 6 Dec 2015 23:55:51 +0000 (00:55 +0100)
commit3f07cc490646afc17b5ad872eb440ce9f79cc900
tree5bd82b69cd075004d072a1bc5cff2b9db4049b58
parent95da2f8e9c61fb09c873c77e82a8d67f22ca4a38
ixgbe: fix Tx bytes statistics with link down

This patch fixes tx byte statistics when transmitting packets
with link down.

Previously, the counter would decrement 4 bytes for each packet that
was transmitted with link down, causing the uint64 to wrap around.

Fixes: c03fcee9abbd ("ixgbe: remove CRC size from byte counters")

Reported-by: Michael Qiu <michael.qiu@intel.com>
Signed-off-by: Harry van Haaren <harry.van.haaren@intel.com>
Acked-by: Pablo de Lara <pablo.de.lara.guarch@intel.com>
drivers/net/ixgbe/ixgbe_ethdev.c