numam-dpdk/lib/librte_vhost
Patrick Fu 819a716858 vhost: fix async callback return type
The async copy device callbacks are used by async APIs to transfer data
and check completion status. Async APIs return the number of packets
successfully processed to the caller applications and no error
(negative) value is allowed for API return value. Thus, negative return
values from async device callbacks don't have meaningful usage, while
adding overhead in checking the return value validity. This patch change
the callback return values from "int" to "uint32_t" to get aligned with
async API definition.

Fixes: 78639d5456 ("vhost: introduce async enqueue registration API")

Signed-off-by: Patrick Fu <patrick.fu@intel.com>
Reviewed-by: Chenbo Xia <chenbo.xia@intel.com>
Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>
2020-07-30 00:41:23 +02:00
..
fd_man.c vhost: fix race condition when adding fd in the fdset 2018-12-21 16:22:40 +01:00
fd_man.h vhost: fix race condition when adding fd in the fdset 2018-12-21 16:22:40 +01:00
iotlb.c vhost: make IOTLB cache name unique among processes 2020-04-21 13:57:07 +02:00
iotlb.h vhost: replace IOTLB license with SPDX tag 2019-08-05 16:06:11 +02:00
Makefile vhost: introduce async enqueue registration API 2020-07-07 23:38:28 +02:00
meson.build vhost: introduce async enqueue registration API 2020-07-07 23:38:28 +02:00
rte_vdpa_dev.h vhost: make some vDPA callbacks mandatory 2020-07-11 06:18:52 +02:00
rte_vdpa.h vhost: split vDPA header file 2020-06-30 14:52:30 +02:00
rte_vhost_async.h vhost: fix async callback return type 2020-07-30 00:41:23 +02:00
rte_vhost_crypto.h enforce experimental tag at beginning of declarations 2019-06-29 19:04:48 +02:00
rte_vhost_version.map vhost: introduce async enqueue registration API 2020-07-07 23:38:28 +02:00
rte_vhost.h vhost: support virtio status 2020-07-11 06:18:52 +02:00
socket.c vhost: make some vDPA callbacks mandatory 2020-07-11 06:18:52 +02:00
vdpa.c vhost: make some vDPA callbacks mandatory 2020-07-11 06:18:52 +02:00
vhost_crypto.c vhost/crypto: validate keys lengths 2020-05-18 15:22:34 +02:00
vhost_user.c vhost: fix double-free with zero-copy 2020-07-21 16:55:30 +02:00
vhost_user.h vhost: support virtio status message 2020-07-11 06:18:52 +02:00
vhost.c vhost: make some vDPA callbacks mandatory 2020-07-11 06:18:52 +02:00
vhost.h vhost: fix async completion of multi-seg packets 2020-07-21 16:54:58 +02:00
virtio_crypto.h vhost: add virtio crypto header file 2018-04-14 00:43:30 +02:00
virtio_net.c vhost: fix async completion of multi-seg packets 2020-07-21 16:54:58 +02:00