[dpdk-dev] [PATCH 25/44] event/octeontx2: add SSO selftest

Jerin Jacob Kollanukkaran jerinj at marvell.com
Mon Jun 17 10:18:50 CEST 2019


> -----Original Message-----
> From: pbhagavatula at marvell.com <pbhagavatula at marvell.com>
> Sent: Sunday, June 2, 2019 12:24 AM
> To: Jerin Jacob Kollanukkaran <jerinj at marvell.com>; Pavan Nikhilesh
> Bhagavatula <pbhagavatula at marvell.com>
> Cc: dev at dpdk.org
> Subject: [dpdk-dev] [PATCH 25/44] event/octeontx2: add SSO selftest
> 
> From: Pavan Nikhilesh <pbhagavatula at marvell.com>
> 
> Add selftest to verify sanity of SSO.
> Can be run by passing devargs to SSO PF as follows:
> 
> 	--dev "0002:0e:00.0,selftest=1"
> 
> Signed-off-by: Pavan Nikhilesh <pbhagavatula at marvell.com>
> Signed-off-by: Jerin Jacob <jerinj at marvell.com>
> ---
>  drivers/event/octeontx2/Makefile              |    1 +
>  drivers/event/octeontx2/meson.build           |    1 +
>  drivers/event/octeontx2/otx2_evdev.c          |   11 +-
>  drivers/event/octeontx2/otx2_evdev.h          |    3 +
>  drivers/event/octeontx2/otx2_evdev_selftest.c | 1511 +++++++++++++++++
>  5 files changed, 1526 insertions(+), 1 deletion(-)  create mode 100644
> drivers/event/octeontx2/otx2_evdev_selftest.c
> 
> diff --git a/drivers/event/octeontx2/Makefile
> b/drivers/event/octeontx2/Makefile
> index dfecda599..d6cffc1f6 100644
> --- a/drivers/event/octeontx2/Makefile
> +++ b/drivers/event/octeontx2/Makefile
> @@ -33,6 +33,7 @@ LIBABIVER := 1
>  SRCS-$(CONFIG_RTE_LIBRTE_PMD_OCTEONTX2_EVENTDEV) +=
> otx2_worker_dual.c
>  SRCS-$(CONFIG_RTE_LIBRTE_PMD_OCTEONTX2_EVENTDEV) += otx2_worker.c
>  SRCS-$(CONFIG_RTE_LIBRTE_PMD_OCTEONTX2_EVENTDEV) += otx2_evdev.c
> +SRCS-$(CONFIG_RTE_LIBRTE_PMD_OCTEONTX2_EVENTDEV) +=
> +otx2_evdev_selftest.c
>  SRCS-$(CONFIG_RTE_LIBRTE_PMD_OCTEONTX2_EVENTDEV) +=
> otx2_evdev_irq.c
> 
>  LDLIBS += -lrte_eal -lrte_bus_pci -lrte_pci -lrte_kvargs diff --git
> a/drivers/event/octeontx2/meson.build b/drivers/event/octeontx2/meson.build
> index c2a5f3e3d..470564b08 100644
> --- a/drivers/event/octeontx2/meson.build
> +++ b/drivers/event/octeontx2/meson.build
> @@ -6,6 +6,7 @@ sources = files('otx2_worker.c',
>  		'otx2_worker_dual.c',
>  		'otx2_evdev.c',
>  		'otx2_evdev_irq.c',
> +		'otx2_evdev_selftest.c',
>  		)
> 
>  allow_experimental_apis = true
> diff --git a/drivers/event/octeontx2/otx2_evdev.c
> b/drivers/event/octeontx2/otx2_evdev.c
> index 9260fdac4..7300da908 100644
> --- a/drivers/event/octeontx2/otx2_evdev.c
> +++ b/drivers/event/octeontx2/otx2_evdev.c
> @@ -1094,11 +1094,13 @@ static struct rte_eventdev_ops otx2_sso_ops = {
>  	.dev_start        = otx2_sso_start,
>  	.dev_stop         = otx2_sso_stop,
>  	.dev_close        = otx2_sso_close,
> +	.dev_selftest     = otx2_sso_selftest,

Please add one line hook to app/test/test_eventdev.c



More information about the dev mailing list