[dpdk-dev] [PATCH v7 5/7] test: add event timer adapter auto-test

Pavan Nikhilesh pbhagavatula at caviumnetworks.com
Wed Mar 14 13:52:41 CET 2018


Hi Gabriel,

On Thu, Mar 08, 2018 at 03:54:04PM -0600, Erik Gabriel Carrillo wrote:
> Signed-off-by: Erik Gabriel Carrillo <erik.g.carrillo at intel.com>
> ---
>  test/test/Makefile                   |    1 +
>  test/test/test_event_timer_adapter.c | 1234 ++++++++++++++++++++++++++++++++++
>  2 files changed, 1235 insertions(+)
>  create mode 100644 test/test/test_event_timer_adapter.c
>
<snip>
> +
> +static int
> +configure_event_dev(void)
> +{
> +	const char *eventdev_name = "event_sw0";

Can this be made generic? instead of hardcoding to event_sw, check if
event_device is passed via --vdev (verify rte_event_dev_count()) and if it is
absent fallback to event_sw.

Thanks,
Pavan.

> +
> +	return TEST_SUCCESS;
> +}
<snip>


More information about the dev mailing list