From f5192f9162d57346835cb8d92fc8de96ca97f3c9 Mon Sep 17 00:00:00 2001 From: Fady Bader Date: Tue, 11 Aug 2020 09:24:20 +0300 Subject: [PATCH] eal/windows: add stub for Rx interrupt control Interrupts are not implemented for Windows. In order to compile ethdev on Windows, an empty interrupt control function stub has to be added for Windows. Signed-off-by: Fady Bader Acked-by: Narcisa Vasile Acked-by: Dmitry Kozlyuk Acked-by: Ranjit Menon Signed-off-by: Thomas Monjalon --- lib/librte_eal/rte_eal_exports.def | 1 + lib/librte_eal/windows/eal_interrupts.c | 13 +++++++++++++ lib/librte_eal/windows/meson.build | 1 + 3 files changed, 15 insertions(+) create mode 100644 lib/librte_eal/windows/eal_interrupts.c diff --git a/lib/librte_eal/rte_eal_exports.def b/lib/librte_eal/rte_eal_exports.def index f54ed74a58..1d4d3fb365 100644 --- a/lib/librte_eal/rte_eal_exports.def +++ b/lib/librte_eal/rte_eal_exports.def @@ -30,6 +30,7 @@ EXPORTS rte_eal_using_phys_addrs rte_free rte_hexdump + rte_intr_rx_ctl rte_log_register rte_log_register_type_and_pick_level rte_log_set_level diff --git a/lib/librte_eal/windows/eal_interrupts.c b/lib/librte_eal/windows/eal_interrupts.c new file mode 100644 index 0000000000..d3ecdaccbc --- /dev/null +++ b/lib/librte_eal/windows/eal_interrupts.c @@ -0,0 +1,13 @@ +/* SPDX-License-Identifier: BSD-3-Clause + * Copyright 2020 Mellanox Technologies, Ltd + */ + +#include + +int +rte_intr_rx_ctl(__rte_unused struct rte_intr_handle *intr_handle, + __rte_unused int epfd, __rte_unused int op, + __rte_unused unsigned int vec, __rte_unused void *data) +{ + return -ENOTSUP; +} diff --git a/lib/librte_eal/windows/meson.build b/lib/librte_eal/windows/meson.build index 08c888e018..b690bc6b0a 100644 --- a/lib/librte_eal/windows/meson.build +++ b/lib/librte_eal/windows/meson.build @@ -8,6 +8,7 @@ sources += files( 'eal_debug.c', 'eal_file.c', 'eal_hugepages.c', + 'eal_interrupts.c', 'eal_lcore.c', 'eal_log.c', 'eal_memalloc.c', -- 2.20.1