1 /* SPDX-License-Identifier: BSD-3-Clause
2 * Copyright(c) 2010-2020 Intel Corporation
10 #include <rte_vhost_async.h>
12 #define MAX_VHOST_DEVICE 1024
13 #define IOAT_RING_SIZE 4096
14 #define MAX_ENQUEUED_SIZE 256
17 struct rte_pci_addr addr;
22 struct dma_for_vhost {
23 struct dma_info dmas[RTE_MAX_QUEUES_PER_PORT * 2];
28 int open_ioat(const char *value);
30 static int open_ioat(const char *value __rte_unused)
37 ioat_transfer_data_cb(int vid, uint16_t queue_id,
38 struct rte_vhost_async_desc *descs,
39 struct rte_vhost_async_status *opaque_data, uint16_t count);
42 ioat_check_completed_copies_cb(int vid, uint16_t queue_id,
43 struct rte_vhost_async_status *opaque_data,
44 uint16_t max_packets);