From: Yunjian Wang Date: Wed, 15 Jul 2020 02:40:10 +0000 (+0800) Subject: eal/linux: fix handling of error events from epoll X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=e3e9c87c0fc7c8e65e8f13c7bef133a552d0a597;p=dpdk.git 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 Acked-by: Harman Kalra --- diff --git a/lib/librte_eal/linux/eal_interrupts.c b/lib/librte_eal/linux/eal_interrupts.c index 2f03a61254..1dd994bd1f 100644 --- a/lib/librte_eal/linux/eal_interrupts.c +++ b/lib/librte_eal/linux/eal_interrupts.c @@ -1241,7 +1241,7 @@ eal_epoll_process_event(struct epoll_event *evs, unsigned int n, events[count].status = RTE_EPOLL_VALID; events[count].fd = rev->fd; events[count].epfd = rev->epfd; - events[count].epdata.event = rev->epdata.event; + events[count].epdata.event = evs[i].events; events[count].epdata.data = rev->epdata.data; if (rev->epdata.cb_fun) rev->epdata.cb_fun(rev->fd,