[dpdk-dev] [PATCH v8 02/11] eal/linux: add rte_epoll_wait/ctl support

2015-05-22 Thread Liang, Cunming
On 5/22/2015 2:17 AM, Stephen Hemminger wrote: > On Thu, 21 May 2015 16:55:54 +0800 > Cunming Liang wrote: > >> +static int >> +eal_epoll_process_event(struct epoll_event *evs, int n, >> +struct rte_epoll_event *events) >> +{ >> +int i; >> +int count = 0; >> +

[dpdk-dev] [PATCH v8 02/11] eal/linux: add rte_epoll_wait/ctl support

2015-05-21 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.

[dpdk-dev] [PATCH v8 02/11] eal/linux: add rte_epoll_wait/ctl support

2015-05-21 Thread Stephen Hemminger
On Thu, 21 May 2015 16:55:54 +0800 Cunming Liang wrote: > +static int > +eal_epoll_process_event(struct epoll_event *evs, int n, > + struct rte_epoll_event *events) > +{ > + int i; > + int count = 0; > + struct rte_epoll_event *rev; > + for (i = 0; i < n; i++)