eal/windows: add device event stubs
authorJie Zhou <jizh@linux.microsoft.com>
Tue, 29 Jun 2021 20:50:16 +0000 (13:50 -0700)
committerAndrew Rybchenko <Andrew.Rybchenko@oktetlabs.ru>
Fri, 2 Jul 2021 17:03:03 +0000 (19:03 +0200)
Add device event stubs in eal_dev.c for Windows

Signed-off-by: Jie Zhou <jizh@linux.microsoft.com>
Acked-by: Tal Shnaiderman <talshn@nvidia.com>
Acked-by: Dmitry Kozlyuk <dmitry.kozliuk@gmail.com>
lib/eal/windows/eal_dev.c [new file with mode: 0644]
lib/eal/windows/meson.build

diff --git a/lib/eal/windows/eal_dev.c b/lib/eal/windows/eal_dev.c
new file mode 100644 (file)
index 0000000..3519105
--- /dev/null
@@ -0,0 +1,33 @@
+/* SPDX-License-Identifier: BSD-3-Clause
+ * Copyright(c) 2021 Microsoft Corporation
+ */
+
+#include <rte_dev.h>
+
+int
+rte_dev_event_monitor_start(void)
+{
+       RTE_LOG(ERR, EAL, "Device event is not supported for Windows\n");
+       return -1;
+}
+
+int
+rte_dev_event_monitor_stop(void)
+{
+       RTE_LOG(ERR, EAL, "Device event is not supported for Windows\n");
+       return -1;
+}
+
+int
+rte_dev_hotplug_handle_enable(void)
+{
+       RTE_LOG(ERR, EAL, "Device event is not supported for Windows\n");
+       return -1;
+}
+
+int
+rte_dev_hotplug_handle_disable(void)
+{
+       RTE_LOG(ERR, EAL, "Device event is not supported for Windows\n");
+       return -1;
+}
index ff9cbec..fc12fef 100644 (file)
@@ -7,6 +7,7 @@ sources += files(
         'eal.c',
         'eal_alarm.c',
         'eal_debug.c',
+        'eal_dev.c',
         'eal_file.c',
         'eal_hugepages.c',
         'eal_interrupts.c',