net/iavf: adjust CRC statistics calculation
authorHaiyue Wang <haiyue.wang@intel.com>
Fri, 15 Jan 2021 06:57:08 +0000 (14:57 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 19 Jan 2021 02:30:14 +0000 (03:30 +0100)
commit03a7f3b0405754d2e5513217888b3f83512e6375
treedde0cdfed4e1ae0670bdae7f22f30a0e8f6680fd
parent82fca5d18b6d05fa9800a0172b55f0f6f57825b5
net/iavf: adjust CRC statistics calculation

The AVF can support to enable / disable CRC strip, so it needs to adjust
the statistics calculation for ibytes according to offload setting.

Signed-off-by: Haiyue Wang <haiyue.wang@intel.com>
Acked-by: Qi Zhang <qi.z.zhang@intel.com>
drivers/net/iavf/iavf_ethdev.c