summaryrefslogtreecommitdiff
path: root/drivers/raw/octeontx2_dma/otx2_dpi_rawdev.c
diff options
context:
space:
mode:
authorSatha Rao <skoteshwar@marvell.com>2019-07-05 14:08:04 +0530
committerThomas Monjalon <thomas@monjalon.net>2019-07-05 12:43:52 +0200
commitb225073dda0eae37c90e1b01211f4127d11b0c97 (patch)
tree75112ff0e88a9fafe3e7d84dcbefe5f4ea1c40ac /drivers/raw/octeontx2_dma/otx2_dpi_rawdev.c
parent78ca17f59470751fab0b77e0b8b2854469f31a44 (diff)
downloaddpdk-b225073dda0eae37c90e1b01211f4127d11b0c97.zip
dpdk-b225073dda0eae37c90e1b01211f4127d11b0c97.tar.gz
dpdk-b225073dda0eae37c90e1b01211f4127d11b0c97.tar.xz
raw/octeontx2_dma: add driver self test
Sample test to verify DMA functionality, this test covers internal transfer mode. Signed-off-by: Satha Rao <skoteshwar@marvell.com> Signed-off-by: Vamsi Attunuru <vattunuru@marvell.com>
Diffstat (limited to 'drivers/raw/octeontx2_dma/otx2_dpi_rawdev.c')
-rw-r--r--drivers/raw/octeontx2_dma/otx2_dpi_rawdev.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/raw/octeontx2_dma/otx2_dpi_rawdev.c b/drivers/raw/octeontx2_dma/otx2_dpi_rawdev.c
index 6ce218e..6a1b436 100644
--- a/drivers/raw/octeontx2_dma/otx2_dpi_rawdev.c
+++ b/drivers/raw/octeontx2_dma/otx2_dpi_rawdev.c
@@ -338,6 +338,7 @@ static const struct rte_rawdev_ops dpi_rawdev_ops = {
.dev_reset = otx2_dpi_rawdev_reset,
.enqueue_bufs = otx2_dpi_rawdev_enqueue_bufs,
.dequeue_bufs = otx2_dpi_rawdev_dequeue_bufs,
+ .dev_selftest = test_otx2_dma_rawdev,
};
static int