From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bruce Richardson Subject: Re: [PATCH] eventdev: Add rte_errno return values to the enqueue and dequeue functions Date: Mon, 13 Feb 2017 12:08:11 +0000 Message-ID: <20170213120811.GA11468@bricha3-MOBL3.ger.corp.intel.com> References: <1486760541-12568-1-git-send-email-gage.eads@intel.com> <20170213103854.GB377356@bricha3-MOBL3.ger.corp.intel.com> <20170213114810.GA32617@localhost.localdomain> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Gage Eads , dev@dpdk.org, hemant.agrawal@nxp.com, harry.van.haaren@intel.com, nipun.gupta@nxp.com To: Jerin Jacob Return-path: Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by dpdk.org (Postfix) with ESMTP id CAD7C2C4B for ; Mon, 13 Feb 2017 13:08:16 +0100 (CET) Content-Disposition: inline In-Reply-To: <20170213114810.GA32617@localhost.localdomain> List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On Mon, Feb 13, 2017 at 05:18:11PM +0530, Jerin Jacob wrote: > On Mon, Feb 13, 2017 at 10:38:55AM +0000, Bruce Richardson wrote: > > On Fri, Feb 10, 2017 at 03:02:21PM -0600, Gage Eads wrote: > > > This change allows user software to differentiate between an invalid argument > > > (such as an invalid queue_id or sched_type in an enqueued event) and > > > backpressure from the event device. > > > > > > The port and device ID checks are placed in RTE_LIBRTE_EVENTDEV_DEBUG header > > > guards to avoid the performance hit in non-debug execution. > > > > > > Signed-off-by: Gage Eads > > > --- > > > > Do we have some idea of the performance hit from these? It may be too > > soon to know, given we don't have many drivers to test with, but if > > there is no perf hit seen with the SW driver, I think we should look to > > just always do this, rather than having it compile-time off. If it does > > IMO, It is better put to under compile-time like ethdev. It is > difficult predict the performance regression on wide range of cores that DPDK > runs now. I think we need to add following additional checks based on > Gage header file change > > 1) Per event queue ID is valid or not? > 2) Per event's sched type doesn't match the capabilities of the destination queue. > Ok, if we are expanding the number of checks then I definitely think it needs to be compile-time selected. /Bruce > > > prove to be a performance problem we can look to #ifdef it out later. > > > > /Bruce