[dpdk-dev] [PATCH] app/test-eventdev: add options to set mbuf and pkt size

Jerin Jacob jerinjacobk at gmail.com
Mon Sep 23 09:34:34 CEST 2019


On Sun, Sep 22, 2019 at 10:42 AM <pbhagavatula at marvell.com> wrote:
>
> From: Pavan Nikhilesh <pbhagavatula at marvell.com>
>
> Add options to set mbuf size and max packet size which allow the user to
> enable jumbo frames and Rx/Tx scatter gather.
> Packet mbuf size can be modified by using `--mbuf_sz=N`.
> Max packet size can be modified by using `--max_pkt_sz=N`.
> These options are only applicable `pipeline_atq` and `pipeline_queue`
> tests.
>
> Signed-off-by: Pavan Nikhilesh <pbhagavatula at marvell.com>
> ---
>  app/test-eventdev/evt_common.h           | 30 ++++++++++---------
>  app/test-eventdev/evt_options.c          | 28 ++++++++++++++++-
>  app/test-eventdev/evt_options.h          |  2 ++
>  app/test-eventdev/test_pipeline_common.c | 38 ++++++++++++++++++++++--


doc/guides/tools/testeventdev.rst doc update is mising.


>  4 files changed, 80 insertions(+), 18 deletions(-)
>
> diff --git a/app/test-eventdev/evt_common.h b/app/test-eventdev/evt_common.h
> index 1c3522ff4..f9d7378d3 100644
> --- a/app/test-eventdev/evt_common.h
> +++ b/app/test-eventdev/evt_common.h
> @@ -47,28 +47,30 @@ struct evt_options {

>         uint32_t deq_tmo_nsec;
> +       uint32_t q_priority:1;
> +       uint32_t fwd_latency:1;
> +       uint64_t nb_pkts;
> +       uint64_t nb_timers;
> +       uint64_t expiry_nsec;
> +       uint64_t max_tmo_nsec;
> +       uint64_t timer_tick_nsec;
> +       uint64_t optm_timer_tick_nsec;
>         enum evt_prod_type prod_type;
> -       uint8_t timdev_use_burst;
> -       uint8_t timdev_cnt;
>  };

Please add the reason for restructuring in git commit.


More information about the dev mailing list