X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=examples%2Fvhost%2Fioat.h;h=d6e1e2e079469492a498c6058902984aa323934a;hb=ecf1474a618ba77ef3c4471fdc004a8c5f3b4d11;hp=9664fcc3ac7e482451e0c2947238753557280351;hpb=abec60e7115dc3197ffc94a1eee9353b9b808600;p=dpdk.git diff --git a/examples/vhost/ioat.h b/examples/vhost/ioat.h index 9664fcc3ac..d6e1e2e079 100644 --- a/examples/vhost/ioat.h +++ b/examples/vhost/ioat.h @@ -24,14 +24,8 @@ struct dma_for_vhost { uint16_t nr; }; -#ifdef RTE_ARCH_X86 +#ifdef RTE_RAW_IOAT int open_ioat(const char *value); -#else -static int open_ioat(const char *value __rte_unused) -{ - return -1; -} -#endif uint32_t ioat_transfer_data_cb(int vid, uint16_t queue_id, @@ -42,4 +36,28 @@ uint32_t ioat_check_completed_copies_cb(int vid, uint16_t queue_id, struct rte_vhost_async_status *opaque_data, uint16_t max_packets); +#else +static int open_ioat(const char *value __rte_unused) +{ + return -1; +} + +static uint32_t +ioat_transfer_data_cb(int vid __rte_unused, uint16_t queue_id __rte_unused, + struct rte_vhost_async_desc *descs __rte_unused, + struct rte_vhost_async_status *opaque_data __rte_unused, + uint16_t count __rte_unused) +{ + return -1; +} + +static uint32_t +ioat_check_completed_copies_cb(int vid __rte_unused, + uint16_t queue_id __rte_unused, + struct rte_vhost_async_status *opaque_data __rte_unused, + uint16_t max_packets __rte_unused) +{ + return -1; +} +#endif #endif /* _IOAT_H_ */