X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=lib%2Flibrte_vhost%2Frte_vhost_async.h;h=c73bd7c99044d64766e9574d665039c2d160d4ca;hb=9253c34cfb9dd32faeb8e513f6d8fafd356a2e62;hp=cb6284539d7125a98369eda673cff5246e0fbfb5;hpb=819a716858264d6c90f554e4fe53740b42c4c893;p=dpdk.git diff --git a/lib/librte_vhost/rte_vhost_async.h b/lib/librte_vhost/rte_vhost_async.h index cb6284539d..c73bd7c990 100644 --- a/lib/librte_vhost/rte_vhost_async.h +++ b/lib/librte_vhost/rte_vhost_async.h @@ -76,13 +76,26 @@ struct rte_vhost_async_channel_ops { * @param max_packets * max number of packets could be completed * @return - * number of iov segments completed + * number of async descs completed */ uint32_t (*check_completed_copies)(int vid, uint16_t queue_id, struct rte_vhost_async_status *opaque_data, uint16_t max_packets); }; +/** + * inflight async packet information + */ +struct async_inflight_info { + union { + uint32_t info; + struct { + uint16_t descs; /* num of descs inflight */ + uint16_t segs; /* iov segs inflight */ + }; + }; +}; + /** * dma channel feature bit definition */