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

err_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: 75e2bc54c018 ("net/kni: add KNI PMD")
Cc: stable@dpdk.org
Signed-off-by: David Marchand <david.marchand@redhat.com>
Acked-by: Ferruh Yigit <ferruh.yigit@intel.com>
drivers/net/kni/rte_eth_kni.c