[dpdk-dev] [PATCH v13 02/14] eal/linux: add rte_epoll_wait/ctl support

2015-07-17 Thread Liang, Cunming
> -Original Message- > From: Thomas Monjalon [mailto:thomas.monjalon at 6wind.com] > Sent: Tuesday, July 14, 2015 12:56 AM > To: Liang, Cunming > Cc: dev at dpdk.org; shemming at brocade.com; david.marchand at 6wind.com; > Zhou, Danny; Wang, Liang-min; Richardson, Bruce; Liu, Yong; > nhor

[dpdk-dev] [PATCH v13 02/14] eal/linux: add rte_epoll_wait/ctl support

2015-07-17 Thread Liang, Cunming
> -Original Message- > From: Thomas Monjalon [mailto:thomas.monjalon at 6wind.com] > Sent: Tuesday, July 14, 2015 12:46 AM > To: Liang, Cunming > Cc: dev at dpdk.org; shemming at brocade.com; david.marchand at 6wind.com; > Zhou, Danny; Wang, Liang-min; Richardson, Bruce; Liu, Yong; > nhor

[dpdk-dev] [PATCH v13 02/14] eal/linux: add rte_epoll_wait/ctl support

2015-07-13 Thread Thomas Monjalon
2015-06-19 12:00, Cunming Liang: > +int > +rte_epoll_wait(int epfd, struct rte_epoll_event *events, > +int maxevents, int timeout) > +{ > + struct epoll_event evs[maxevents]; > + int rc; > + > + if (!events) { > + RTE_LOG(ERR, EAL, "rte_epoll_event can't be NULL\

[dpdk-dev] [PATCH v13 02/14] eal/linux: add rte_epoll_wait/ctl support

2015-07-13 Thread Thomas Monjalon
2015-06-19 12:00, Cunming Liang: > --- a/lib/librte_eal/linuxapp/eal/include/exec-env/rte_interrupts.h > +++ b/lib/librte_eal/linuxapp/eal/include/exec-env/rte_interrupts.h > @@ -51,6 +51,32 @@ enum rte_intr_handle_type { > RTE_INTR_HANDLE_MAX > }; > > +#define RTE_INTR_EVENT_ADD

[dpdk-dev] [PATCH v13 02/14] eal/linux: add rte_epoll_wait/ctl support

2015-06-19 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. When the event fds add to a specified epoll instance, 'eptrs' will hold the rte_epoll_event object pointer. The 'op' uses the same enum as epoll_wait/ctl does. The ep