Skip to content

Commit

Permalink
test/crypto: support uadk PMD
Browse files Browse the repository at this point in the history
Example:
sudo dpdk-test --vdev=crypto_uadk --log-level=6
RTE>>cryptodev_uadk_autotest
RTE>>quit

Signed-off-by: Zhangfei Gao <zhangfei.gao@linaro.org>
  • Loading branch information
zhangfeigao committed Oct 26, 2022
1 parent 6ff03f1 commit 4be993e
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 0 deletions.
1 change: 1 addition & 0 deletions app/test/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -312,6 +312,7 @@ driver_test_names = [
'cryptodev_sw_mvsam_autotest',
'cryptodev_sw_snow3g_autotest',
'cryptodev_sw_zuc_autotest',
'cryptodev_uadk_autotest',
'dmadev_autotest',
'rawdev_autotest',
]
Expand Down
7 changes: 7 additions & 0 deletions app/test/test_cryptodev.c
Original file line number Diff line number Diff line change
Expand Up @@ -16538,6 +16538,12 @@ test_cryptodev_qat(void)
return run_cryptodev_testsuite(RTE_STR(CRYPTODEV_NAME_QAT_SYM_PMD));
}

static int
test_cryptodev_uadk(void)
{
return run_cryptodev_testsuite(RTE_STR(CRYPTODEV_NAME_UADK_PMD));
}

static int
test_cryptodev_virtio(void)
{
Expand Down Expand Up @@ -16881,6 +16887,7 @@ REGISTER_TEST_COMMAND(cryptodev_sw_mvsam_autotest, test_cryptodev_mrvl);
REGISTER_TEST_COMMAND(cryptodev_dpaa2_sec_autotest, test_cryptodev_dpaa2_sec);
REGISTER_TEST_COMMAND(cryptodev_dpaa_sec_autotest, test_cryptodev_dpaa_sec);
REGISTER_TEST_COMMAND(cryptodev_ccp_autotest, test_cryptodev_ccp);
REGISTER_TEST_COMMAND(cryptodev_uadk_autotest, test_cryptodev_uadk);
REGISTER_TEST_COMMAND(cryptodev_virtio_autotest, test_cryptodev_virtio);
REGISTER_TEST_COMMAND(cryptodev_octeontx_autotest, test_cryptodev_octeontx);
REGISTER_TEST_COMMAND(cryptodev_caam_jr_autotest, test_cryptodev_caam_jr);
Expand Down
1 change: 1 addition & 0 deletions app/test/test_cryptodev.h
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@
#define CRYPTODEV_NAME_CN9K_PMD crypto_cn9k
#define CRYPTODEV_NAME_CN10K_PMD crypto_cn10k
#define CRYPTODEV_NAME_MLX5_PMD crypto_mlx5
#define CRYPTODEV_NAME_UADK_PMD crypto_uadk


enum cryptodev_api_test_type {
Expand Down
3 changes: 3 additions & 0 deletions doc/guides/cryptodevs/uadk.rst
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,9 @@ Test steps
$ mount -t hugetlbfs none /mnt/huge_2mb -o pagesize=2MB

5. Run test app
$ sudo dpdk-test --vdev=crypto_uadk --log-level=6
RTE>>cryptodev_uadk_autotest
RTE>>quit


[1] https://github.com/Linaro/uadk

0 comments on commit 4be993e

Please sign in to comment.