763de290cb
Previously, for PF statistics we use VSI register for packet count but use port's register for packet bytes, that cause inconsistent situation of PF statistics when some VF is active, since it will cover VF's packet bytes but not packet count. The patch will take port register for PF packet count back, but still exclude main vsi's discard packet count. Just like previous fix, its still not perfect, (since RX packet number is over counted when there is VF discard packet) but seems it make the overall better. Fixes: 9aace75fc82e ("i40e: fix statistics") Cc: stable@dpdk.org Signed-off-by: Qi Zhang <qi.z.zhang@intel.com>