i40e: remove CRC size from byte counters
authorHarry van Haaren <harry.van.haaren@intel.com>
Wed, 18 Nov 2015 10:48:09 +0000 (10:48 +0000)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Mon, 23 Nov 2015 22:51:14 +0000 (23:51 +0100)
commit0834d1524deefac66f8655a9bcafd7cf296afbfb
tree1721fb1350b06c1092ec9e32ca87394d07346785
parentc03fcee9abbd4d1ff25e0e91c1f1b2481ec764c2
i40e: remove CRC size from byte counters

This patch removes the crc bytes from byte counter statistics.

Doing so fixes a bug that CRC bytes were included on TX but not
on RX, causing mismatch of bytes received / sent.

Fixes: 9aace75fc82e ("i40e: fix statistics")

Reported-by: Weichun Chen <weichunx.chen@intel.com>
Signed-off-by: Harry van Haaren <harry.van.haaren@intel.com>
Acked-by: Konstantin Ananyev <konstantin.ananyev@intel.com>
drivers/net/i40e/i40e_ethdev.c