net/memif: do not count unsent packets as errors
authorDavid Marchand <david.marchand@redhat.com>
Fri, 26 Jul 2019 10:21:26 +0000 (12:21 +0200)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 26 Jul 2019 13:27:05 +0000 (15:27 +0200)
commit2e56e7885db01421886cf745a8212210f58960f4
tree6353964926436f6eaf2c59fabefdc9323bcde48e
parent9f0d4c6ba8c3076ebe63bdaa2ba9ed68afdc17f2
net/memif: do not count unsent packets as errors

n_err reflects the number of packets that the driver did not manage to
send.
This is a temporary situation, those packets are not freed and the
application can still retry to send them later.
Hence, we can't count them as transmit failed.

Fixes: 09c7e63a71f9 ("net/memif: introduce memory interface PMD")

Signed-off-by: David Marchand <david.marchand@redhat.com>
Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
drivers/net/memif/rte_eth_memif.c
drivers/net/memif/rte_eth_memif.h