net/iavf: fix Rx total stats
authorJiaqi Min <jiaqix.min@intel.com>
Fri, 13 Dec 2019 01:23:29 +0000 (01:23 +0000)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 17 Jan 2020 18:45:23 +0000 (19:45 +0100)
commite71ffcc1008eeb67d585174dfb10066e9e3df2f7
treefee624dab53d5f48e0291a5756f519df9e41c3d9
parent7a3c4f4de26381f3f2b85297f603ad6a5f96a9f3
net/iavf: fix Rx total stats

Rx total stats is the total number of successfully received packets,
so exclude the number of rx_discards for Rx total stats.

Fixes: f4a41a6953af ("net/avf: support stats")
Cc: stable@dpdk.org
Signed-off-by: Jiaqi Min <jiaqix.min@intel.com>
Acked-by: Jingjing Wu <jingjing.wu@intel.com>
drivers/net/iavf/iavf_ethdev.c