net/iavf: fix Rx bytes stats
authorQi Zhang <qi.z.zhang@intel.com>
Wed, 17 Jul 2019 04:31:00 +0000 (12:31 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 23 Jul 2019 12:31:35 +0000 (14:31 +0200)
commit15edfab79e48de2dd8be3d8793126a7692a34d61
tree7529d58a7cd18b37ba02e8f7a5ab27898c60401c
parent69a27a5f4a433ae22d00e6195c69b629372b0682
net/iavf: fix Rx bytes stats

Exclude 4 bytes CRC for rx bytes stats.
This also aligned Rx stats calculation with PF.

Fixes: f4a41a6953af ("net/avf: support stats")
Cc: stable@dpdk.org
Signed-off-by: Qi Zhang <qi.z.zhang@intel.com>
Acked-by: Stephen Hemminger <stephen@networkplumber.org>
drivers/net/iavf/iavf_ethdev.c