From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jerin Jacob Subject: Re: [PATCH 12/20] event/dpaa2: add configuration functions Date: Wed, 31 May 2017 20:50:23 +0530 Message-ID: <20170531152022.GC16598@jerin> References: <1495735671-4917-1-git-send-email-nipun.gupta@nxp.com> <1495735671-4917-13-git-send-email-nipun.gupta@nxp.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: dev@dpdk.org, hemant.agrawal@nxp.com, harry.van.haaren@intel.com, bruce.richardson@intel.com, gage.eads@intel.com, shreyansh.jain@nxp.com To: Nipun Gupta Return-path: Received: from NAM01-BN3-obe.outbound.protection.outlook.com (mail-bn3nam01on0055.outbound.protection.outlook.com [104.47.33.55]) by dpdk.org (Postfix) with ESMTP id 9A1A44CE4 for ; Wed, 31 May 2017 17:21:22 +0200 (CEST) Content-Disposition: inline In-Reply-To: <1495735671-4917-13-git-send-email-nipun.gupta@nxp.com> List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" -----Original Message----- > Date: Thu, 25 May 2017 23:37:43 +0530 > From: Nipun Gupta > To: dev@dpdk.org > CC: hemant.agrawal@nxp.com, jerin.jacob@caviumnetworks.com, > harry.van.haaren@intel.com, bruce.richardson@intel.com, > gage.eads@intel.com, shreyansh.jain@nxp.com, Nipun Gupta > > Subject: [PATCH 12/20] event/dpaa2: add configuration functions > X-Mailer: git-send-email 1.9.1 > > This patch adds all the configuration API's for DPAA2 eventdev > including device config, start, stop & port and queue > related API's > > Signed-off-by: Nipun Gupta > --- > +static void > +dpaa2_eventdev_queue_def_conf(struct rte_eventdev *dev, uint8_t queue_id, > + struct rte_event_queue_conf *queue_conf) > +{ > + PMD_DRV_FUNC_TRACE(); > + > + RTE_SET_USED(dev); > + RTE_SET_USED(queue_id); > + RTE_SET_USED(queue_conf); > + > + queue_conf->nb_atomic_flows = DPAA2_EVENT_QUEUE_ATOMIC_FLOWS; > + queue_conf->nb_atomic_order_sequences = DPAA2_EVENT_QUEUE_ATOMIC_FLOWS; > + queue_conf->event_queue_cfg = RTE_EVENT_QUEUE_CFG_ALL_TYPES; If RTE_EVENT_QUEUE_CFG_ALL_TYPES is supported then add RTE_EVENT_DEV_CAP_QUEUE_ALL_TYPES in rte_event_dev_info.event_dev_cap