net/i40e: fix Rx bytes statistics
authorAlvin Zhang <alvinx.zhang@intel.com>
Tue, 15 Dec 2020 09:50:59 +0000 (17:50 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 8 Jan 2021 15:03:06 +0000 (16:03 +0100)
commite8326d35d14406df936164bbac171563555a888b
tree5efef35f91aa62f03148342b4b9dd65a9a494c06
parent06cad275fecf4e1892b076796065942cdc1ef44e
net/i40e: fix Rx bytes statistics

Update the Rx-bytes statistics by subtract CRC bytes count from original
bytes count.

Fixes: bd7883c07d4a ("net/i40e: refactor some stats related functions")
Cc: stable@dpdk.org
Signed-off-by: Alvin Zhang <alvinx.zhang@intel.com>
Tested-by: Jun W Zhou <junx.w.zhou@intel.com>
Acked-by: Qi Zhang <qi.z.zhang@intel.com>
drivers/net/i40e/i40e_ethdev_vf.c