vhost: fix async callbacks return type
authorCheng Jiang <cheng1.jiang@intel.com>
Fri, 23 Jul 2021 08:09:34 +0000 (08:09 +0000)
committerChenbo Xia <chenbo.xia@intel.com>
Fri, 23 Jul 2021 08:58:53 +0000 (10:58 +0200)
commit3f63c19b2b3b25e72fe4c3d938a43738d04b7618
treea258e39e380924d5c0869cc0576f0a9d306b0dbe
parent29c875cc11ac0d79e35c2b8685b8fe8ecda58731
vhost: fix async callbacks return type

The async vhost callback ops should return negative value when there
are something wrong in the callback, so the return type should be
changed into int32_t. The issue in vhost example is also fixed.

Fixes: cd6760da1076 ("vhost: introduce async enqueue for split ring")
Fixes: 819a71685826 ("vhost: fix async callback return type")
Fixes: 6b3c81db8bb7 ("vhost: simplify async copy completion")
Fixes: abec60e7115d ("examples/vhost: support vhost async data path")
Fixes: 6e9a9d2a02ae ("examples/vhost: fix ioat dependency")
Fixes: 873e8dad6f49 ("vhost: support packed ring in async datapath")
Cc: stable@dpdk.org
Signed-off-by: Cheng Jiang <cheng1.jiang@intel.com>
Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>
examples/vhost/ioat.c
examples/vhost/ioat.h
lib/vhost/rte_vhost_async.h
lib/vhost/virtio_net.c