[dpdk-dev] [PATCH 1/2] eal/windows: add interrupt thread skeleton
Narcisa Ana Maria Vasile
navasile at linux.microsoft.com
Fri Sep 25 03:19:03 CEST 2020
On Fri, Sep 11, 2020 at 03:22:06AM +0300, Dmitry Kozlyuk wrote:
> Windows interrupt support is based on IO completion ports (IOCP).
> Interrupt thread would send the devices requests to notify about
> interrupts and then wait for any request completion. Add skeleton code
> of this model without any hardware support.
>
> Another way to wake up the interrupt thread is APC (asynchronous procedure
> call), scheduled by any other thread via eal_intr_thread_schedule().
> This internal API is intended for alarm implementation.
>
> Signed-off-by: Dmitry Kozlyuk <dmitry.kozliuk at gmail.com>
> ---
> lib/librte_eal/include/rte_eal_interrupts.h | 14 ++-
> lib/librte_eal/rte_eal_exports.def | 1 +
> lib/librte_eal/windows/eal.c | 5 ++
> lib/librte_eal/windows/eal_interrupts.c | 99 +++++++++++++++++++++
> lib/librte_eal/windows/eal_windows.h | 12 +++
> lib/librte_eal/windows/include/pthread.h | 7 ++
> lib/librte_eal/windows/meson.build | 1 +
> 7 files changed, 136 insertions(+), 3 deletions(-)
> create mode 100644 lib/librte_eal/windows/eal_interrupts.c
>
Reviewed-by: Narcisa Vasile <navasile at linux.microsoft.com>
Getting an "undefined reference to rte_intr_rx_ctl", guess we need to add a stub for this.
Otherwise, compiles successfully with both clang and mingw.
More information about the dev
mailing list