From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Liang, Cunming" Subject: Re: [PATCH v10 02/13] eal/linux: add rte_epoll_wait/ctl support Date: Wed, 03 Jun 2015 15:16:32 +0800 Message-ID: <556EA9D0.9000700@intel.com> References: <1432889125-20255-1-git-send-email-cunming.liang@intel.com> <1433228006-24661-1-git-send-email-cunming.liang@intel.com> <1433228006-24661-3-git-send-email-cunming.liang@intel.com> <20150602092117.3a0b443a@urahara> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Cc: dev@dpdk.org, liang-min.wang@intel.com To: Stephen Hemminger Return-path: Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by dpdk.org (Postfix) with ESMTP id D94A05A35 for ; Wed, 3 Jun 2015 09:16:38 +0200 (CEST) In-Reply-To: <20150602092117.3a0b443a@urahara> List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On 6/3/2015 12:21 AM, Stephen Hemminger wrote: > On Tue, 2 Jun 2015 14:53:15 +0800 > Cunming Liang wrote: > >> 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 > > Minor polish comments, not blockers. > > >> +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. > > / >> +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'? > > > >> + */ >> +int >> +rte_intr_tls_epfd(void); Thanks Stephen, will fix the typo and send the cleanup patch.