5#ifndef _RTE_VHOST_ASYNC_H_
6#define _RTE_VHOST_ASYNC_H_
14#include <rte_compat.h>
28int rte_vhost_async_channel_register(
int vid, uint16_t queue_id);
41int rte_vhost_async_channel_unregister(
int vid, uint16_t queue_id);
58int rte_vhost_async_channel_register_thread_unsafe(
int vid, uint16_t queue_id);
75int rte_vhost_async_channel_unregister_thread_unsafe(
int vid,
99uint16_t rte_vhost_submit_enqueue_burst(
int vid, uint16_t queue_id,
100 struct rte_mbuf **pkts, uint16_t count, int16_t dma_id,
124uint16_t rte_vhost_poll_enqueue_completed(
int vid, uint16_t queue_id,
125 struct rte_mbuf **pkts, uint16_t count, int16_t dma_id,
140int rte_vhost_async_get_inflight(
int vid, uint16_t queue_id);
157int rte_vhost_async_get_inflight_thread_unsafe(
int vid, uint16_t queue_id);
182uint16_t rte_vhost_clear_queue_thread_unsafe(
int vid, uint16_t queue_id,
183 struct rte_mbuf **pkts, uint16_t count, int16_t dma_id,
207uint16_t rte_vhost_clear_queue(
int vid, uint16_t queue_id,
208 struct rte_mbuf **pkts, uint16_t count, int16_t dma_id,
230int rte_vhost_async_dma_configure(int16_t dma_id, uint16_t vchan_id);
265rte_vhost_async_try_dequeue_burst(
int vid, uint16_t queue_id,
267 int *nr_inflight, int16_t dma_id, uint16_t vchan_id);
287rte_vhost_async_dma_unconfigure(int16_t dma_id, uint16_t vchan_id);