From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bruce Richardson Subject: Re: [PATCH 1/4] eventdev: introduce event driven programming model Date: Thu, 24 Nov 2016 12:26:26 +0000 Message-ID: <20161124122626.GA123652@bricha3-MOBL3.ger.corp.intel.com> References: <1479447902-3700-1-git-send-email-jerin.jacob@caviumnetworks.com> <1479447902-3700-2-git-send-email-jerin.jacob@caviumnetworks.com> <3691745.y1f1NvKTEv@xps13> <20161124015912.GA13508@svelivela-lt.caveonetworks.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Thomas Monjalon , dev@dpdk.org, harry.van.haaren@intel.com, hemant.agrawal@nxp.com, gage.eads@intel.com To: Jerin Jacob Return-path: Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) by dpdk.org (Postfix) with ESMTP id 28651F72 for ; Thu, 24 Nov 2016 13:26:30 +0100 (CET) Content-Disposition: inline In-Reply-To: <20161124015912.GA13508@svelivela-lt.caveonetworks.com> 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 Thu, Nov 24, 2016 at 07:29:13AM +0530, Jerin Jacob wrote: > On Wed, Nov 23, 2016 at 07:39:09PM +0100, Thomas Monjalon wrote: Just some comments on mine triggered by Thomas comments? > > + */ > > > +static inline int > > > +rte_event_enqueue(uint8_t dev_id, uint8_t port_id, struct rte_event *ev) > > > > Is it really needed to have non-burst variant of enqueue/dequeue? > > Yes. certain HW can work only with non burst variants. In those cases is it not acceptable just to have the dequeue_burst function return 1 all the time? It would allow apps to be more portable between burst and non-burst varients would it not. > > > > > +/** > > > + * Converts nanoseconds to *wait* value for rte_event_dequeue() > > > + * > > > + * If the device is configured with RTE_EVENT_DEV_CFG_PER_DEQUEUE_WAIT flag then > > > + * application can use this function to convert wait value in nanoseconds to > > > + * implementations specific wait value supplied in rte_event_dequeue() > > > > Why is it implementation-specific? > > Why this conversion is not internal in the driver? > > This is for performance optimization, otherwise in drivers > need to convert ns to ticks in "fast path" > > > Is that really likely to be a performance bottleneck. I would expect modern cores to fly through basic arithmetic in a negligable amount of cycles? /Bruce