-----Original Message-----
> Date: Wed, 18 Oct 2017 18:09:06 +0530
> From: Pavan Nikhilesh <pbhagavat...@caviumnetworks.com>
> To: bruce.richard...@intel.com, harry.van.haa...@intel.com,
>  gage.e...@intel.com, hemant.agra...@nxp.com, nipun.gu...@nxp.com,
>  nikhil....@intel.com, santosh.shu...@caviumnetworks.com,
>  jerin.ja...@caviumnetworks.com
> Cc: dev@dpdk.org, Pavan Nikhilesh <pbhagavat...@caviumnetworks.com>
> 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 <pbhagavat...@caviumnetworks.com>
> ---
>  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 <jerin.ja...@caviumnetworks.com>

Reply via email to