From: Dmitry Kozlyuk Date: Sun, 2 May 2021 02:33:31 +0000 (+0300) Subject: eal/windows: fix interrupt thread ID X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=35dff5d3b7fb0d8e559e0d82d329333f365e7273;p=dpdk.git eal/windows: fix interrupt thread ID Interrupt thread ID retained its value after interrupt thread finish. Other interrupt routines could then operate on the wrong thread. Clear interrupt thread ID before thread termination. Fixes: 5c016fc0205a ("eal/windows: add interrupt thread skeleton") Cc: stable@dpdk.org Signed-off-by: Dmitry Kozlyuk Acked-by: Tyler Retzlaff --- diff --git a/lib/eal/windows/eal_interrupts.c b/lib/eal/windows/eal_interrupts.c index 1d4cf794df..9cde02b003 100644 --- a/lib/eal/windows/eal_interrupts.c +++ b/lib/eal/windows/eal_interrupts.c @@ -46,8 +46,11 @@ eal_intr_thread_main(LPVOID arg __rte_unused) eal_intr_process(&events[i]); } + intr_thread = 0; + CloseHandle(intr_iocp); intr_iocp = NULL; + return NULL; }