eal/windows: cleanup interrupt resources
authorDmitry Kozlyuk <dmitry.kozliuk@gmail.com>
Sun, 2 May 2021 02:33:33 +0000 (05:33 +0300)
committerThomas Monjalon <thomas@monjalon.net>
Wed, 23 Jun 2021 07:05:36 +0000 (09:05 +0200)
commitcfdaa678b3bbff51fe152c18621c751867c70bd2
tree08c9a431dec310bf566fe7b2976e9d86f019c039
parent3888f31950c8f7554d74925a7eca1557c7685fc3
eal/windows: cleanup interrupt resources

Interrupt manager in Windows EAL allocates on IOCP and starts
a control thread that runs indefinitely. At DPDK cleanup
this thread was not stopped and IOCP handle was not closed.

Gracefully stop interrupt-handling in rte_eal_cleanup().
The thread already closes IOCP handle before exiting.

Fixes: 5c016fc0205a ("eal/windows: add interrupt thread skeleton")
Cc: stable@dpdk.org
Signed-off-by: Dmitry Kozlyuk <dmitry.kozliuk@gmail.com>
Acked-by: Ranjit Menon <ranjit.menon@intel.com>
Acked-by: Jie Zhou <jizh@microsoft.com>
Tested-by: Jie Zhou <jizh@microsoft.com>
lib/eal/windows/eal.c
lib/eal/windows/eal_interrupts.c
lib/eal/windows/eal_windows.h