On Thu, Oct 14, 2021 at 1:46 AM Rashmi Shetty <rashmi.she...@intel.com> wrote:
>
> This commit introduces a new command line option prod_enq_burst_sz
> to set burst size for eventdev enqueue at producer in perf_queue
> test. The newly added function perf_producer_burst is called when
> prod_enq_burst_sz is greater than 1.
>
> Signed-off-by: Rashmi Shetty <rashmi.she...@intel.com>
> ---
>  app/test-eventdev/evt_common.h       |  1 +
>  app/test-eventdev/evt_main.c         |  2 +-
>  app/test-eventdev/evt_options.c      | 14 +++++
>  app/test-eventdev/evt_options.h      |  1 +
>  app/test-eventdev/test_perf_common.c | 81 +++++++++++++++++++++++++++-
>  app/test-eventdev/test_perf_common.h |  1 +

Update doc/guides/tools/testeventdev.rst for this new command-line option and
extended existing example command to use the new one as a separate command.


>  6 files changed, 97 insertions(+), 3 deletions(-)
>
> diff --git a/app/test-eventdev/evt_common.h b/app/test-eventdev/evt_common.h
> index 28afb114b3..f466434459 100644

> +       struct perf_elt *m[MAX_PROD_ENQ_BURST_SIZE + 1] = {NULL};

Use memcpy, some old compiler may issue with this kind of usage.

> +       struct rte_event ev[MAX_PROD_ENQ_BURST_SIZE + 1];
> +       uint32_t burst_size = opt->prod_enq_burst_sz;
> +
> +       rte_event_dev_info_get(dev_id, &dev_info);
> +       if (dev_info.max_event_port_enqueue_depth < burst_size)
> +               burst_size = dev_info.max_event_port_enqueue_depth;
> +
> +       if (opt->verbose_level > 1)
> +               printf("%s(): lcore %d dev_id %d port=%d queue %d\n", 
> __func__,
> +                               rte_lcore_id(), dev_id, port, p->queue_id);
> +

Reply via email to