From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bruce Richardson Subject: Re: [PATCH v4 2/6] eventdev: define southbound driver interface Date: Thu, 2 Feb 2017 11:34:19 +0000 Message-ID: <20170202113419.GA186604@bricha3-MOBL3.ger.corp.intel.com> References: <1480996340-29871-1-git-send-email-jerin.jacob@caviumnetworks.com> <1482312326-2589-1-git-send-email-jerin.jacob@caviumnetworks.com> <1482312326-2589-3-git-send-email-jerin.jacob@caviumnetworks.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Jerin Jacob , "dev@dpdk.org" , "thomas.monjalon@6wind.com" , Hemant Agrawal , "gage.eads@intel.com" , "harry.van.haaren@intel.com" To: Nipun Gupta Return-path: Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by dpdk.org (Postfix) with ESMTP id 9028B2BE5 for ; Thu, 2 Feb 2017 12:34:24 +0100 (CET) Content-Disposition: inline In-Reply-To: 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 Thu, Feb 02, 2017 at 11:19:51AM +0000, Nipun Gupta wrote: > > > > -----Original Message----- > > From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Jerin Jacob > > Sent: Wednesday, December 21, 2016 14:55 > > To: dev@dpdk.org > > Cc: thomas.monjalon@6wind.com; bruce.richardson@intel.com; Hemant > > Agrawal ; gage.eads@intel.com; > > harry.van.haaren@intel.com; Jerin Jacob > > Subject: [dpdk-dev] [PATCH v4 2/6] eventdev: define southbound driver > > interface > > > > Signed-off-by: Jerin Jacob > > Acked-by: Bruce Richardson > > --- > > lib/librte_eventdev/rte_eventdev.h | 38 +++++ > > lib/librte_eventdev/rte_eventdev_pmd.h | 294 > > +++++++++++++++++++++++++++++++++ > > 2 files changed, 332 insertions(+) > > create mode 100644 lib/librte_eventdev/rte_eventdev_pmd.h > > > > > > > +typedef int (*eventdev_port_link_t)(void *port, > > + const uint8_t queues[], const uint8_t priorities[], > > + uint16_t nb_links); > > I think having event device as input parameter to the port_link & port_unlink will > be required so that queue configuration can be fetched from the event device. > Or each port structure in each driver can have a pointer back to its containing eventdev. That is what we have done in our SW eventdev driver. /Bruce