net/i40e: fix incorrect PF Rx bytes
authorQi Zhang <qi.z.zhang@intel.com>
Wed, 5 Jul 2017 06:48:06 +0000 (02:48 -0400)
committerFerruh Yigit <ferruh.yigit@intel.com>
Thu, 6 Jul 2017 13:00:57 +0000 (15:00 +0200)
commitbe3231c984c3f4e31d3c6f3b2f48203311c9095f
tree048a88375443c7229b492cf99232b3ae8c89fe68
parentc735b831b0c1800051fa780d0135533000dc472f
net/i40e: fix incorrect PF Rx bytes

Internal Rx packet bytes is over counted, CRC size is not excluded,
that cause incorrect Rx bytes or even negative value.

Fixes: 0bcdc44510ef ("net/i40e: exclude internal packet's byte count")

Signed-off-by: Qi Zhang <qi.z.zhang@intel.com>
drivers/net/i40e/i40e_ethdev.c
drivers/net/i40e/i40e_ethdev.h