X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=lib%2Fvhost%2Fvhost.c;h=9540522dac8c3c11b395348effa137f84c2d56cd;hb=953e74e6b73a876d6f149fd759bd0423e5438247;hp=355ff37651cb30f6e39ec2a967d9b269215251a7;hpb=fa51f1aa087fe64148ef499dd1bc71b8a5c985df;p=dpdk.git diff --git a/lib/vhost/vhost.c b/lib/vhost/vhost.c index 355ff37651..9540522dac 100644 --- a/lib/vhost/vhost.c +++ b/lib/vhost/vhost.c @@ -1500,7 +1500,8 @@ rte_vhost_get_vdpa_device(int vid) return dev->vdpa_dev; } -int rte_vhost_get_log_base(int vid, uint64_t *log_base, +int +rte_vhost_get_log_base(int vid, uint64_t *log_base, uint64_t *log_size) { struct virtio_net *dev = get_device(vid); @@ -1514,7 +1515,8 @@ int rte_vhost_get_log_base(int vid, uint64_t *log_base, return 0; } -int rte_vhost_get_vring_base(int vid, uint16_t queue_id, +int +rte_vhost_get_vring_base(int vid, uint16_t queue_id, uint16_t *last_avail_idx, uint16_t *last_used_idx) { struct vhost_virtqueue *vq; @@ -1543,7 +1545,8 @@ int rte_vhost_get_vring_base(int vid, uint16_t queue_id, return 0; } -int rte_vhost_set_vring_base(int vid, uint16_t queue_id, +int +rte_vhost_set_vring_base(int vid, uint16_t queue_id, uint16_t last_avail_idx, uint16_t last_used_idx) { struct vhost_virtqueue *vq; @@ -1606,7 +1609,8 @@ rte_vhost_get_vring_base_from_inflight(int vid, return 0; } -int rte_vhost_extern_callback_register(int vid, +int +rte_vhost_extern_callback_register(int vid, struct rte_vhost_user_extern_ops const * const ops, void *ctx) { struct virtio_net *dev = get_device(vid); @@ -1621,7 +1625,6 @@ int rte_vhost_extern_callback_register(int vid, static __rte_always_inline int async_channel_register(int vid, uint16_t queue_id, - struct rte_vhost_async_config config, struct rte_vhost_async_channel_ops *ops) { struct virtio_net *dev = get_device(vid); @@ -1693,7 +1696,6 @@ async_channel_register(int vid, uint16_t queue_id, vq->async_ops.check_completed_copies = ops->check_completed_copies; vq->async_ops.transfer_data = ops->transfer_data; - vq->async_threshold = config.async_threshold; vq->async_registered = true; @@ -1732,7 +1734,7 @@ rte_vhost_async_channel_register(int vid, uint16_t queue_id, return -1; rte_spinlock_lock(&vq->access_lock); - ret = async_channel_register(vid, queue_id, config, ops); + ret = async_channel_register(vid, queue_id, ops); rte_spinlock_unlock(&vq->access_lock); return ret; @@ -1768,7 +1770,7 @@ rte_vhost_async_channel_register_thread_unsafe(int vid, uint16_t queue_id, ops->transfer_data == NULL)) return -1; - return async_channel_register(vid, queue_id, config, ops); + return async_channel_register(vid, queue_id, ops); } int @@ -1854,7 +1856,8 @@ rte_vhost_async_channel_unregister_thread_unsafe(int vid, uint16_t queue_id) return 0; } -int rte_vhost_async_get_inflight(int vid, uint16_t queue_id) +int +rte_vhost_async_get_inflight(int vid, uint16_t queue_id) { struct vhost_virtqueue *vq; struct virtio_net *dev = get_device(vid);