From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jerin Jacob Subject: Re: [PATCH 14/33] app/testeventdev: order: add eventdev port setup Date: Fri, 23 Jun 2017 18:15:25 +0530 Message-ID: <20170623124524.GA1140@jerin> References: <20170528195854.6064-1-jerin.jacob@caviumnetworks.com> <20170528195854.6064-15-jerin.jacob@caviumnetworks.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: "dev@dpdk.org" , "Richardson, Bruce" , "hemant.agrawal@nxp.com" , "Eads, Gage" , "nipun.gupta@nxp.com" , "Vangati, Narender" , "Rao, Nikhil" , "gprathyusha@caviumnetworks.com" To: "Van Haaren, Harry" Return-path: Received: from NAM02-BL2-obe.outbound.protection.outlook.com (mail-bl2nam02on0067.outbound.protection.outlook.com [104.47.38.67]) by dpdk.org (Postfix) with ESMTP id 89F22F94 for ; Fri, 23 Jun 2017 14:46:14 +0200 (CEST) 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" -----Original Message----- > Date: Fri, 23 Jun 2017 12:36:47 +0000 > From: "Van Haaren, Harry" > To: Jerin Jacob , "dev@dpdk.org" > > CC: "Richardson, Bruce" , > "hemant.agrawal@nxp.com" , "Eads, Gage" > , "nipun.gupta@nxp.com" , > "Vangati, Narender" , "Rao, Nikhil" > , "gprathyusha@caviumnetworks.com" > > Subject: RE: [dpdk-dev] [PATCH 14/33] app/testeventdev: order: add eventdev > port setup > > > From: Jerin Jacob [mailto:jerin.jacob@caviumnetworks.com] > > Sent: Sunday, May 28, 2017 8:59 PM > > To: dev@dpdk.org > > Cc: Richardson, Bruce ; Van Haaren, Harry > > ; hemant.agrawal@nxp.com; Eads, Gage ; > > nipun.gupta@nxp.com; Vangati, Narender ; Rao, Nikhil > > ; gprathyusha@caviumnetworks.com; Jerin Jacob > > > > Subject: [dpdk-dev] [PATCH 14/33] app/testeventdev: order: add eventdev port setup > > > > Setup one port per worker and link to all queues and setup > > one producer port to inject the events. > > > > Signed-off-by: Jerin Jacob > > One suggestion below to increase the enqueue depth, or was there a reason set it to 8? No specific reason. I think, In some example, SW driver was configuring to 8. So I choose to select 8. I will change to 32 as you suggested. > > Acked-by: Harry van Haaren > > > > > > + /* setup one port per worker, linking to all queues */ > > + for (port = 0; port < nb_workers; port++) { > > + struct worker_data *w = &t->worker[port]; > > + > > + w->dev_id = opt->dev_id; > > + w->port_id = port; > > + w->t = t; > > + > > + ret = rte_event_port_setup(opt->dev_id, port, &wkr_p_conf); > > + if (ret) { > > + evt_err("failed to setup port %d", port); > > + return ret; > > + } > > + > > + ret = rte_event_port_link(opt->dev_id, port, NULL, NULL, 0); > > + if (ret != nb_queues) { > > + evt_err("failed to link all queues to port %d", port); > > + return -EINVAL; > > + } > > + } > > + /* port for producer, no links */ > > + const struct rte_event_port_conf prod_conf = { > > + .dequeue_depth = 8, > > + .enqueue_depth = 8, > > .enqueue_depth = 32 or so? >