From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jerin Jacob Subject: Re: [PATCH v2 10/12] app/eventdev: add pipeline atq test Date: Mon, 8 Jan 2018 19:45:30 +0530 Message-ID: <20180108141529.GD8412@jerin> References: <20171130072406.15605-1-pbhagavatula@caviumnetworks.com> <20171218214405.26763-1-pbhagavatula@caviumnetworks.com> <20171218214405.26763-10-pbhagavatula@caviumnetworks.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: santosh.shukla@caviumnetworks.com, bruce.richardson@intel.com, harry.van.haaren@intel.com, gage.eads@intel.com, hemant.agrawal@nxp.com, nipun.gupta@nxp.com, liang.j.ma@intel.com, dev@dpdk.org To: Pavan Nikhilesh Return-path: Received: from NAM01-BY2-obe.outbound.protection.outlook.com (mail-by2nam01on0080.outbound.protection.outlook.com [104.47.34.80]) by dpdk.org (Postfix) with ESMTP id 9E0D7199B0 for ; Mon, 8 Jan 2018 15:15:53 +0100 (CET) Content-Disposition: inline In-Reply-To: <20171218214405.26763-10-pbhagavatula@caviumnetworks.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: Tue, 19 Dec 2017 03:14:03 +0530 > From: Pavan Nikhilesh > To: jerin.jacob@caviumnetworks.com, santosh.shukla@caviumnetworks.com, > bruce.richardson@intel.com, harry.van.haaren@intel.com, > gage.eads@intel.com, hemant.agrawal@nxp.com, nipun.gupta@nxp.com, > liang.j.ma@intel.com > Cc: dev@dpdk.org, Pavan Nikhilesh > Subject: [dpdk-dev] [PATCH v2 10/12] app/eventdev: add pipeline atq test > X-Mailer: git-send-email 2.14.1 > > This is a pipeline test case that aims at testing the following with > ``all types queue`` eventdev scheme. > 1. Measure the end-to-end performance of an event dev with a ethernet dev. > 2. Maintain packet ordering from Rx to Tx. > > The atq queue test functions as same as ``pipeline_queue`` test. > The difference is, It uses, ``all type queue scheme`` instead of separate > queues for each stage and thus reduces the number of queues required to > realize the use case. > > Note: The --prod_type_ethdev is mandatory for running the application. > > Example command to run pipeline atq test: > sudo build/app/dpdk-test-eventdev -c 0xf -s 0x8 --vdev=event_sw0 -- \ > --test=pipeline_atq --wlcore=1 --prod_type_ethdev --stlist=ao > > Signed-off-by: Pavan Nikhilesh > + > +#include "test_pipeline_common.h" > + > +/* See http://dpdk.org/doc/guides/tools/testeventdev.html for test details */ > + > +static __rte_always_inline int > +pipeline_atq_nb_event_queues(struct evt_options *opt) > +{ > + uint16_t eth_count = rte_eth_dev_count(); > + > + return (eth_count * opt->nb_stages); > +} > + > +static int > +worker_wrapper(void *arg) > +{ > + RTE_SET_USED(arg); > + rte_panic("invalid worker\n"); > +} > + > +static int > +pipeline_atq_launch_lcores(struct evt_test *test, struct evt_options *opt) > +{ > + return pipeline_launch_lcores(test, opt, worker_wrapper); > +} > + > +static int > +pipeline_atq_eventdev_setup(struct evt_test *test, struct evt_options *opt) > +{ > + int ret; > + int nb_ports; > + int nb_queues; > + int nb_stages = opt->nb_stages; > + uint8_t queue; > + struct rte_event_dev_info info; > + > + nb_ports = evt_nr_active_lcores(opt->wlcores); > + nb_queues = rte_eth_dev_count() * (nb_stages); nb_queues = rte_eth_dev_count(); for atq.