Thread (162 messages) 162 messages, 10 authors, 2015-07-27

Re: [PATCH v10 02/13] eal/linux: add rte_epoll_wait/ctl support

From: Liang, Cunming <hidden>
Date: 2015-06-03 07:16:38


On 6/3/2015 12:21 AM, Stephen Hemminger wrote:
On Tue,  2 Jun 2015 14:53:15 +0800
Cunming Liang [off-list ref] wrote:
quoted
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.

Signed-off-by: Cunming Liang <redacted>
Minor polish comments, not blockers.

quoted
+static inline int
+eal_init_tls_epfd(void)
+{
+	int pfd = epoll_create(255);
+	if (pfd < 0) {
Kernel style checker wants blank line after declaration here.

/
quoted
+int
+rte_epoll_ctl(int epfd, int op, int fd,
+	      struct rte_epoll_event *event);
+
+/**
+ * The function returns the per thread epoll instance.
+ *
+ * @return
+ *   epfd the epoll instance refered to.
Spell check: 'refered' may be misspelled - perhaps 'referred'?


quoted
+ */
+int
+rte_intr_tls_epfd(void);
Thanks Stephen, will fix the typo and send the cleanup patch.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help