eal/linux: fix epoll fd list rebuild for interrupts
authorHarman Kalra <hkalra@marvell.com>
Fri, 19 Jun 2020 13:59:28 +0000 (19:29 +0530)
committerThomas Monjalon <thomas@monjalon.net>
Wed, 24 Jun 2020 08:01:56 +0000 (10:01 +0200)
commit02b73b1e93a2e319e5751e0e662e6271f6f3367e
treee86b40e38a8c432059ac7db7bd79926ff532af13
parent0149ee8dc82cba3254c47cdc4adf44881c6dc26c
eal/linux: fix epoll fd list rebuild for interrupts

An issue has been observed where epoll file descriptor
list rebuilds every time an interrupt/alarm event is
received.

eal_intr_process_interrupts() should notify pipe fd only
if any source is removed from the source list i.e (rv > 0)

Fixes: 0c7ce182a760 ("eal: add pending interrupt callback unregister")
Cc: stable@dpdk.org
Signed-off-by: Harman Kalra <hkalra@marvell.com>
lib/librte_eal/linux/eal_interrupts.c