vhost: fix async inflight packet counter
authorPatrick Fu <patrick.fu@intel.com>
Tue, 3 Nov 2020 05:35:01 +0000 (13:35 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 13 Nov 2020 18:43:25 +0000 (19:43 +0100)
commit45ba914134075f67200f55e5b5a9ad8b3da4df48
tree2a24d35ce221cbafc320ca8e74275a9082f9425c
parent854dbee2ac990002bbf7a19c65aa7385e589f6d9
vhost: fix async inflight packet counter

Async inflight packet counter should take failed packets into account.
Failed packets will be deducted in the error handling logic.

Fixes: 6b3c81db8bb7 ("vhost: simplify async copy completion")
Fixes: cd6760da1076 ("vhost: introduce async enqueue for split ring")
Cc: stable@dpdk.org
Signed-off-by: Patrick Fu <patrick.fu@intel.com>
Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>
lib/librte_vhost/virtio_net.c