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 <fady@mellanox.com>
Acked-by: Narcisa Vasile <navasile@linux.microsoft.com>
Acked-by: Dmitry Kozlyuk <dmitry.kozliuk@gmail.com>
Acked-by: Ranjit Menon <ranjit.menon@intel.com>
Signed-off-by: Thomas Monjalon <thomas@monjalon.net>
This commit is contained in:
Fady Bader 2020-08-11 09:24:20 +03:00 committed by Thomas Monjalon
parent 16f0d03098
commit f5192f9162
3 changed files with 15 additions and 0 deletions

View File

@ -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

View File

@ -0,0 +1,13 @@
/* SPDX-License-Identifier: BSD-3-Clause
* Copyright 2020 Mellanox Technologies, Ltd
*/
#include <rte_interrupts.h>
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;
}

View File

@ -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',