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 4096
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);
31 ioat_transfer_data_cb(int vid, uint16_t queue_id,
32 struct rte_vhost_async_desc *descs,
33 struct rte_vhost_async_status *opaque_data, uint16_t count);
36 ioat_check_completed_copies_cb(int vid, uint16_t queue_id,
37 struct rte_vhost_async_status *opaque_data,
38 uint16_t max_packets);
40 static int open_ioat(const char *value __rte_unused)
46 ioat_transfer_data_cb(int vid __rte_unused, uint16_t queue_id __rte_unused,
47 struct rte_vhost_async_desc *descs __rte_unused,
48 struct rte_vhost_async_status *opaque_data __rte_unused,
49 uint16_t count __rte_unused)
55 ioat_check_completed_copies_cb(int vid __rte_unused,
56 uint16_t queue_id __rte_unused,
57 struct rte_vhost_async_status *opaque_data __rte_unused,
58 uint16_t max_packets __rte_unused)