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

missed_pkts 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: 5f05e95cd5d9 ("net/vhost: fix Tx error counting")
Fixes: ee584e9710b9 ("vhost: add driver on top of the library")
Cc: stable@dpdk.org
Signed-off-by: David Marchand <david.marchand@redhat.com>
Reviewed-by: Tiwei Bie <tiwei.bie@intel.com>
drivers/net/vhost/rte_eth_vhost.c