X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;ds=sidebyside;f=lib%2Flibrte_vhost%2Frte_vhost_async.h;h=cb6284539d7125a98369eda673cff5246e0fbfb5;hb=819a716858264d6c90f554e4fe53740b42c4c893;hp=c8ad8dbc7ee47bdc9d94a3d8aa6eb66f2d0800da;hpb=362f06f9a430d65e96a8bb8e972570bedd3ece5d;p=dpdk.git diff --git a/lib/librte_vhost/rte_vhost_async.h b/lib/librte_vhost/rte_vhost_async.h index c8ad8dbc7e..cb6284539d 100644 --- a/lib/librte_vhost/rte_vhost_async.h +++ b/lib/librte_vhost/rte_vhost_async.h @@ -59,9 +59,9 @@ struct rte_vhost_async_channel_ops { * @param count * number of elements in the "descs" array * @return - * -1 on failure, number of descs processed on success + * number of descs processed */ - int (*transfer_data)(int vid, uint16_t queue_id, + uint32_t (*transfer_data)(int vid, uint16_t queue_id, struct rte_vhost_async_desc *descs, struct rte_vhost_async_status *opaque_data, uint16_t count); @@ -70,15 +70,15 @@ struct rte_vhost_async_channel_ops { * @param vid * id of vhost device to check copy completion * @param queue_id - * queue id to check copyp completion + * queue id to check copy completion * @param opaque_data * buffer to receive the opaque data pair from DMA engine * @param max_packets * max number of packets could be completed * @return - * -1 on failure, number of iov segments completed on success + * number of iov segments completed */ - int (*check_completed_copies)(int vid, uint16_t queue_id, + uint32_t (*check_completed_copies)(int vid, uint16_t queue_id, struct rte_vhost_async_status *opaque_data, uint16_t max_packets); };