net/ice: fix Rx statistics
authorSimei Su <simei.su@intel.com>
Wed, 24 Apr 2019 07:06:10 +0000 (15:06 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 3 May 2019 16:45:23 +0000 (18:45 +0200)
commitb1d4f2ab65184d9bb010b3c8aec34cc86523affb
tree515fff05aaa598815464fb1f1859e12c4ffbeff0
parent3b93bed6b1d75b150b2b7e82ff90f476940d241b
net/ice: fix Rx statistics

The RX stats will increase even no packets sent, this patch fix this issue
by modifying ipackets and ibytes statistics based on vsi instead of port
to avoid statistics error.

Fixes: a37bde56314d ("net/ice: support statistics")
Cc: stable@dpdk.org
Signed-off-by: Simei Su <simei.su@intel.com>
Acked-by: Qi Zhang <qi.z.zhang@intel.com>
drivers/net/ice/ice_ethdev.c