Skip to content

Commit

Permalink
eal/linux: fix handling of error events from epoll
Browse files Browse the repository at this point in the history
[ upstream commit e3e9c87 ]

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: 9efe9c6 ("eal/linux: add epoll wrappers")

Signed-off-by: Yunjian Wang <wangyunjian@huawei.com>
Acked-by: Harman Kalra <hkalra@marvell.com>
  • Loading branch information
wyjwang authored and cpaelzer committed Feb 2, 2021
1 parent 3d155a9 commit 51a78a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/librte_eal/linux/eal/eal_interrupts.c
Original file line number Diff line number Diff line change
Expand Up @@ -1205,7 +1205,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,
Expand Down

0 comments on commit 51a78a3

Please sign in to comment.