net/ena: handle spurious wakeups in wait event
net/ena: handle spurious wakeups in wait event

pthread_cond_timedwait() may spuriously wakeup according to POSIX.
Therefore it is required to check whether predicate is actually true
before finishing the waiting loop.

Signed-off-by: Stanislaw Kardach <0d18f8336f2f75f44655e0db45e62a88edb4ec0c@semihalf.com>
Reviewed-by: Michal Krawczyk <a91dcbb4df49d8bfe0a9930d7ff911a4292ca1f5@semihalf.com>
Reviewed-by: Igor Chauskin <a8d4b4819272c1df83ebe995beed3305455c3333@amazon.com>
Reviewed-by: Shay Agroskin <69dcc34cfc5da012ae45b6a971118c981b82fe05@amazon.com>

john-mcnamara-intel/dpdk,john-mcnamara-intel/dpdk,john-mcnamara-intel/dpdk,john-mcnamara-intel/dpdk