net/sfc: fix VF error/missed stats mapping
authorAndrew Rybchenko <arybchenko@solarflare.com>
Wed, 16 Jan 2019 09:43:23 +0000 (09:43 +0000)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 18 Jan 2019 08:47:26 +0000 (09:47 +0100)
commit24f8a95917b36b313a49bd604c3958f992893efd
tree928edadb12875d4113652be671fea2fc6f2546b1
parent2014a7fbae2be56af7fcffc882a299eb06a6a81c
net/sfc: fix VF error/missed stats mapping

VADAPTER_RX_OVERFLOW means Rx statistics overflow, not a missed
packet because of overflow.

VADAPTER_RX_BAD_PACKETS accumulates a number of error conditions,
but mainly impossibility to deliver because of no descriptors
available, so it is better to classify it as imissed.

Fixes: 1caab2f1e684 ("net/sfc: add basic statistics")
Cc: stable@dpdk.org
Signed-off-by: Andrew Rybchenko <arybchenko@solarflare.com>
drivers/net/sfc/sfc_ethdev.c