[dpdk-dev] [PATCH v7 02/10] eal/linux: add rte_epoll_wait/ctl support

2015-05-11 Thread Liang, Cunming
On 5/8/2015 10:57 AM, Stephen Hemminger wrote: > On Tue, 5 May 2015 13:39:38 +0800 > Cunming Liang wrote: > >> +else if (rc < 0) { >> +/* epoll_wait fail */ >> +RTE_LOG(ERR, EAL, "epoll_wait returns with fail %s\n", >> +strerror(errno)); > In

[dpdk-dev] [PATCH v7 02/10] eal/linux: add rte_epoll_wait/ctl support

2015-05-07 Thread Stephen Hemminger
On Tue, 5 May 2015 13:39:38 +0800 Cunming Liang wrote: > + else if (rc < 0) { > + /* epoll_wait fail */ > + RTE_LOG(ERR, EAL, "epoll_wait returns with fail %s\n", > + strerror(errno)); In real application there maybe other random signals.

[dpdk-dev] [PATCH v7 02/10] eal/linux: add rte_epoll_wait/ctl support

2015-05-05 Thread Cunming Liang
The patch adds 'rte_epoll_wait' and 'rte_epoll_ctl' for async event wakeup. It defines 'struct rte_epoll_event' as the event param. The 'op' uses the same enum as epoll_wait/ctl does. The epoll event support to carry a raw user data and to register a callback which is exectuted during wakeup.