[dpdk-dev] [PATCH] eal/windows: add stub for rte_intr_callback_register
Tal Shnaiderman
talshn at nvidia.com
Thu Nov 26 09:06:39 CET 2020
interrupt callback register is not implemented in Windows.
Add stub with -ENOTSUP return value and export the function.
Signed-off-by: Tal Shnaiderman <talshn at nvidia.com>
---
lib/librte_eal/rte_eal_exports.def | 1 +
lib/librte_eal/windows/eal_interrupts.c | 9 +++++++++
2 files changed, 10 insertions(+)
diff --git a/lib/librte_eal/rte_eal_exports.def b/lib/librte_eal/rte_eal_exports.def
index 6a6be1cfa6..08cf25ea01 100644
--- a/lib/librte_eal/rte_eal_exports.def
+++ b/lib/librte_eal/rte_eal_exports.def
@@ -63,6 +63,7 @@ EXPORTS
rte_get_tsc_hz
rte_hexdump
rte_hypervisor_get
+ rte_intr_callback_register
rte_intr_rx_ctl
rte_lcore_count
rte_lcore_has_role
diff --git a/lib/librte_eal/windows/eal_interrupts.c b/lib/librte_eal/windows/eal_interrupts.c
index 6c64a48f34..fea338d705 100644
--- a/lib/librte_eal/windows/eal_interrupts.c
+++ b/lib/librte_eal/windows/eal_interrupts.c
@@ -105,3 +105,12 @@ eal_intr_thread_schedule(void (*func)(void *arg), void *arg)
return 0;
}
+
+int
+rte_intr_callback_register(
+ __rte_unused const struct rte_intr_handle *intr_handle,
+ __rte_unused rte_intr_callback_fn cb,
+ __rte_unused void *cb_arg)
+{
+ return -ENOTSUP;
+}
--
2.16.1.windows.4
More information about the dev
mailing list