[dpdk-dev] [PATCH v2 4/8] eventdev/opdl: opdl eventdev pmd unit test function
Jerin Jacob
jerin.jacob at caviumnetworks.com
Sat Dec 16 13:12:16 CET 2017
-----Original Message-----
> Date: Fri, 15 Dec 2017 11:26:25 +0000
> From: Liang Ma <liang.j.ma at intel.com>
> To: jerin.jacob at caviumnetworks.com
> CC: dev at dpdk.org, harry.van.haaren at intel.com, bruce.richardson at intel.com,
> deepak.k.jain at intel.com, john.geary at intel.com, peter.mccarthy at intel.com,
> seanbh at gmail.com
> Subject: [PATCH v2 4/8] eventdev/opdl: opdl eventdev pmd unit test function
> X-Mailer: git-send-email 2.7.5
>
> This commit adds unit test inside the OPDL PMD. There is a PMd parameter
> "self_test" can be used to triger the test when vdev bus probe opdl device
>
> e.g.
>
> sudo ./app/test --vdev="event_opdl0,self_test=1"
>
> Signed-off-by: Liang Ma <liang.j.ma at intel.com>
> Signed-off-by: Peter, Mccarthy <peter.mccarthy at intel.com>
> ---
> drivers/event/opdl/opdl_test.c | 1079 ++++++++++++++++++++++++++++++++++++++++
> 1 file changed, 1079 insertions(+)
> create mode 100644 drivers/event/opdl/opdl_test.c
>
> +
> +
> +/* destruction */
> +static inline int
> +cleanup(struct test *t __rte_unused)
> +{
> + rte_event_dev_stop(evdev);
> + rte_event_dev_close(evdev);
> + printf("cleanup for test done\n\n");
Replace printf with driver specific logging function across the files in the driver.
More information about the dev
mailing list