* [dpdk-dev] [PATCH] eal/linux: fix rte_epoll_wait
@ 2015-08-18 15:53 Robert Sanford
2015-08-21 1:23 ` Liang, Cunming
0 siblings, 1 reply; 3+ messages in thread
From: Robert Sanford @ 2015-08-18 15:53 UTC (permalink / raw)
To: cunming.liang, dev
Function rte_epoll_wait should return when underlying call
to epoll_wait times out.
Signed-off-by: Robert Sanford <rsanford@akamai.com>
---
lib/librte_eal/linuxapp/eal/eal_interrupts.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/lib/librte_eal/linuxapp/eal/eal_interrupts.c b/lib/librte_eal/linuxapp/eal/eal_interrupts.c
index 3f87875..25cae6a 100644
--- a/lib/librte_eal/linuxapp/eal/eal_interrupts.c
+++ b/lib/librte_eal/linuxapp/eal/eal_interrupts.c
@@ -1012,6 +1012,9 @@ rte_epoll_wait(int epfd, struct rte_epoll_event *events,
strerror(errno));
rc = -1;
break;
+ } else {
+ /* rc == 0, epoll_wait timed out */
+ break;
}
}
--
1.7.1
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [dpdk-dev] [PATCH] eal/linux: fix rte_epoll_wait
2015-08-18 15:53 [dpdk-dev] [PATCH] eal/linux: fix rte_epoll_wait Robert Sanford
@ 2015-08-21 1:23 ` Liang, Cunming
2015-09-08 7:58 ` Thomas Monjalon
0 siblings, 1 reply; 3+ messages in thread
From: Liang, Cunming @ 2015-08-21 1:23 UTC (permalink / raw)
To: Robert Sanford, dev
Hi,
> -----Original Message-----
> From: Robert Sanford [mailto:rsanford2@gmail.com]
> Sent: Tuesday, August 18, 2015 11:54 PM
> To: Liang, Cunming; dev@dpdk.org
> Subject: [PATCH] eal/linux: fix rte_epoll_wait
>
> Function rte_epoll_wait should return when underlying call
> to epoll_wait times out.
>
> Signed-off-by: Robert Sanford <rsanford@akamai.com>
> ---
> lib/librte_eal/linuxapp/eal/eal_interrupts.c | 3 +++
> 1 files changed, 3 insertions(+), 0 deletions(-)
>
> diff --git a/lib/librte_eal/linuxapp/eal/eal_interrupts.c
> b/lib/librte_eal/linuxapp/eal/eal_interrupts.c
> index 3f87875..25cae6a 100644
> --- a/lib/librte_eal/linuxapp/eal/eal_interrupts.c
> +++ b/lib/librte_eal/linuxapp/eal/eal_interrupts.c
> @@ -1012,6 +1012,9 @@ rte_epoll_wait(int epfd, struct rte_epoll_event *events,
> strerror(errno));
> rc = -1;
> break;
> + } else {
> + /* rc == 0, epoll_wait timed out */
> + break;
> }
> }
>
> --
> 1.7.1
Acked-by: Cunming Liang <cunming.liang@intel.com>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2015-09-08 7:59 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-08-18 15:53 [dpdk-dev] [PATCH] eal/linux: fix rte_epoll_wait Robert Sanford
2015-08-21 1:23 ` Liang, Cunming
2015-09-08 7:58 ` Thomas Monjalon
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).