From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jerin Jacob Subject: Re: [PATCH 6/8] app/eventdev: add event Rx adapter setup Date: Sun, 10 Dec 2017 17:43:37 +0530 Message-ID: <20171210121336.GG11770@jerin> References: <1508330348-30060-1-git-send-email-pbhagavatula@caviumnetworks.com> <1508330348-30060-7-git-send-email-pbhagavatula@caviumnetworks.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: bruce.richardson@intel.com, harry.van.haaren@intel.com, gage.eads@intel.com, hemant.agrawal@nxp.com, nipun.gupta@nxp.com, nikhil.rao@intel.com, santosh.shukla@caviumnetworks.com, dev@dpdk.org To: Pavan Nikhilesh Return-path: Received: from NAM01-SN1-obe.outbound.protection.outlook.com (mail-sn1nam01on0041.outbound.protection.outlook.com [104.47.32.41]) by dpdk.org (Postfix) with ESMTP id 32ACC160 for ; Sun, 10 Dec 2017 13:14:02 +0100 (CET) Content-Disposition: inline In-Reply-To: <1508330348-30060-7-git-send-email-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: Wed, 18 Oct 2017 18:09:06 +0530 > From: Pavan Nikhilesh > To: bruce.richardson@intel.com, harry.van.haaren@intel.com, > gage.eads@intel.com, hemant.agrawal@nxp.com, nipun.gupta@nxp.com, > nikhil.rao@intel.com, santosh.shukla@caviumnetworks.com, > jerin.jacob@caviumnetworks.com > Cc: dev@dpdk.org, Pavan Nikhilesh > Subject: [PATCH 6/8] app/eventdev: add event Rx adapter setup > X-Mailer: git-send-email 2.7.4 > > Add functions to setup and configure Rx adapter based on the number of > ethdev ports setup. > > Signed-off-by: Pavan Nikhilesh > --- > app/test-eventdev/test_perf_common.c | 97 ++++++++++++++++++++++++++++++------ > app/test-eventdev/test_perf_common.h | 1 + > 2 files changed, 84 insertions(+), 14 deletions(-) > > diff --git a/app/test-eventdev/test_perf_common.c b/app/test-eventdev/test_perf_common.c > index 04c0c65..0ade1dc 100644 > --- a/app/test-eventdev/test_perf_common.c > +++ b/app/test-eventdev/test_perf_common.c > @@ -232,12 +232,68 @@ perf_launch_lcores(struct evt_test *test, struct evt_options *opt, > return 0; > } > > int > perf_event_dev_port_setup(struct evt_test *test, struct evt_options *opt, > uint8_t stride, uint8_t nb_queues) > { > struct test_perf *t = evt_test_priv(test); > - uint8_t port, prod; > + uint16_t port, prod; > int ret = -1; > > /* port configuration */ > @@ -272,26 +328,38 @@ perf_event_dev_port_setup(struct evt_test *test, struct evt_options *opt, > } > > /* port for producers, no links */ > - const struct rte_event_port_conf prod_conf = { > + struct rte_event_port_conf prod_conf = { > .dequeue_depth = 8, > .enqueue_depth = 32, > .new_event_threshold = 1200, Use default config get functions to get optimal values instead of hard coded values. With above change: Acked-by: Jerin Jacob