From mboxrd@z Thu Jan 1 00:00:00 1970 From: Pavan Nikhilesh Subject: Re: [PATCH 07/13] examples/eventdev: add thread safe Tx worker pipeline Date: Wed, 20 Dec 2017 00:25:15 +0530 Message-ID: <20171219185514.o5plwe4i6omoobi3@Pavan-LT> References: <20171207203705.25020-1-pbhagavatula@caviumnetworks.com> <20171207203705.25020-8-pbhagavatula@caviumnetworks.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: dev@dpdk.org To: "Van Haaren, Harry" , "jerin.jacobkollanukkaran@cavium.com" Return-path: Received: from NAM03-BY2-obe.outbound.protection.outlook.com (mail-by2nam03on0047.outbound.protection.outlook.com [104.47.42.47]) by dpdk.org (Postfix) with ESMTP id 47B6F1B040 for ; Tue, 19 Dec 2017 19:55:34 +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" Hi Harry, Thanks for review and comments. Feedback inline. On Tue, Dec 19, 2017 at 12:00:02PM +0000, Van Haaren, Harry wrote: > > From: Pavan Nikhilesh [mailto:pbhagavatula@caviumnetworks.com] > > Sent: Thursday, December 7, 2017 8:37 PM > > To: Eads, Gage ; jerin.jacobkollanukkaran@cavium.com; > > Van Haaren, Harry ; Rao, Nikhil > > ; hemant.agrawal@nxp.com; Ma, Liang J > > > > Cc: dev@dpdk.org; Pavan Nikhilesh > > Subject: [PATCH 07/13] examples/eventdev: add thread safe Tx worker pipeline > > > > Add worker pipeline when Tx is multi thread safe. > > Probe Ethernet dev capabilities and select it it is supported. > > > > Signed-off-by: Pavan Nikhilesh > > > > > static void > > diff --git a/examples/eventdev_pipeline_sw_pmd/pipeline_common.h > > b/examples/eventdev_pipeline_sw_pmd/pipeline_common.h > > index a5837c99b..0b27d1eb0 100644 > > --- a/examples/eventdev_pipeline_sw_pmd/pipeline_common.h > > +++ b/examples/eventdev_pipeline_sw_pmd/pipeline_common.h > > @@ -108,6 +108,7 @@ struct config_data { > > int dump_dev_signal; > > unsigned int num_stages; > > unsigned int worker_cq_depth; > > + unsigned int rx_stride; > > Perhaps comment what "rx stride" does? The others variables are logical enough to me, but this one I don't get.. Sure, will add comments explaining why we need rx stride. It would basically reduce congestion in entry queue when using multi ports. > > > +static int > > +setup_eventdev_w(struct prod_data *prod_data, > > + struct cons_data *cons_data, > > + struct worker_data *worker_data) > > I think this function name can be improved - what does the w mean? > I will redo the funtion name according to pipeline name. `setup_eventdev_worker_generic` `setup_eventdev_worker_tx` Pavan