[v3,3/4] test/rawdev: add aesni_mb_mfn raw device tests

Message ID 20200410142757.31508-4-david.coyle@intel.com (mailing list archive)
State Superseded, archived
Delegated to: Thomas Monjalon
Headers
Series add AESNI-MB rawdev for multi-function processing |

Checks

Context Check Description
ci/checkpatch success coding style OK
ci/Intel-compilation success Compilation OK

Commit Message

Coyle, David April 10, 2020, 2:27 p.m. UTC
  Add unit tests for the AESNI-MB Multi-Function raw device PMD.

Signed-off-by: David Coyle <david.coyle@intel.com>
Signed-off-by: Mairtin o Loingsigh <mairtin.oloingsigh@intel.com>
---
 app/test/test_rawdev.c | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)
  

Patch

diff --git a/app/test/test_rawdev.c b/app/test/test_rawdev.c
index 524a9d5f3..eae88c20f 100644
--- a/app/test/test_rawdev.c
+++ b/app/test/test_rawdev.c
@@ -45,3 +45,21 @@  test_rawdev_selftest_ioat(void)
 }
 
 REGISTER_TEST_COMMAND(ioat_rawdev_autotest, test_rawdev_selftest_ioat);
+
+static int
+test_rawdev_selftest_aesni_mb_mfn(void)
+{
+	int ret;
+
+	ret = rte_vdev_init("rawdev_mfn_aesni_mb", NULL);
+	if (ret) {
+		printf("Failed to create AESNI-MB Multi-Function rawdev\n");
+		return ret;
+	}
+
+	return rte_rawdev_selftest(rte_rawdev_get_dev_id(
+						"rawdev_mfn_aesni_mb"));
+}
+
+REGISTER_TEST_COMMAND(rawdev_mfn_aesni_mb_autotest,
+				test_rawdev_selftest_aesni_mb_mfn);