eal/linux: fix handling of error events from epoll
authorYunjian Wang <wangyunjian@huawei.com>
Wed, 15 Jul 2020 02:40:10 +0000 (10:40 +0800)
committerDavid Marchand <david.marchand@redhat.com>
Mon, 11 Jan 2021 14:34:21 +0000 (15:34 +0100)
commite3e9c87c0fc7c8e65e8f13c7bef133a552d0a597
tree5b2685eb78004bb2234885ea385781252c4a7d23
parente6b87501657e681f15b48837fdfcffabc0ed6bef
eal/linux: fix handling of error events from epoll

The "rev->epdata.event" assigned to "events.epdata.event" directly, which
was wrong in case of epoll events. It should be set to the "evs.events".

Fixes: 9efe9c6cdcac ("eal/linux: add epoll wrappers")
Cc: stable@dpdk.org
Signed-off-by: Yunjian Wang <wangyunjian@huawei.com>
Acked-by: Harman Kalra <hkalra@marvell.com>
lib/librte_eal/linux/eal_interrupts.c