eal/windows: fix default thread priority
authorTal Shnaiderman <talshn@nvidia.com>
Thu, 18 Feb 2021 11:40:58 +0000 (13:40 +0200)
committerThomas Monjalon <thomas@monjalon.net>
Tue, 16 Mar 2021 11:40:35 +0000 (12:40 +0100)
commit16afcbfa30e9c2831264fb349457a4228fa687c8
treef3c61fdbe0ff4678bd76b4b4b760280561834e62
parente863fe3a13da89787fdf3b5c590101a3c0f10af6
eal/windows: fix default thread priority

The hard-coded thread priority for Windows threads in EAL
is REALTIME_PRIORITY_CLASS/THREAD_PRIORITY_TIME_CRITICAL.

This results in issues with DPDK threads causing OS thread starvation
and eventually a bugcheck.

The fix reduce the thread priority to
NORMAL_PRIORITY_CLASS/THREAD_PRIORITY_NORMAL.

Bugzilla ID: 600
Fixes: 53ffd9f080f ("eal/windows: add minimum viable code")
Cc: stable@dpdk.org
Reported-by: Odi Assli <odia@nvidia.com>
Signed-off-by: Tal Shnaiderman <talshn@nvidia.com>
Acked-by: Dmitry Kozlyuk <dmitry.kozliuk@gmail.com>
lib/librte_eal/windows/eal_thread.c
lib/librte_eal/windows/include/pthread.h