Message ID | 20210715164126.54073-15-shirik@nvidia.com (mailing list archive) |
---|---|
State | Changes Requested, archived |
Delegated to: | akhil goyal |
Headers | show |
Series | drivers: introduce mlx5 crypto PMD | expand |
Context | Check | Description |
---|---|---|
ci/checkpatch | success | coding style OK |
> diff --git a/app/test/test_cryptodev.c b/app/test/test_cryptodev.c > index 31201d93e1..e46668a1e0 100644 > --- a/app/test/test_cryptodev.c > +++ b/app/test/test_cryptodev.c > @@ -14569,6 +14569,12 @@ test_cryptodev_cpu_aesni_gcm(void) > return rc; > } > > +static int > +test_cryptodev_mlx5(void /*argv __rte_unused, int argc __rte_unused*/) Remove unwanted comments. Rebase over current TOT > +{ > + return > run_cryptodev_testsuite(RTE_STR(CRYPTODEV_NAME_MLX5_PMD)); > +} > diff --git a/app/test/test_cryptodev.h b/app/test/test_cryptodev.h > index 5bf1e8818b..262e545ee6 100644 > --- a/app/test/test_cryptodev.h > +++ b/app/test/test_cryptodev.h > @@ -73,6 +73,8 @@ > #define CRYPTODEV_NAME_BCMFS_PMD crypto_bcmfs > #define CRYPTODEV_NAME_CN9K_PMD crypto_cn9k > #define CRYPTODEV_NAME_CN10K_PMD crypto_cn10k > +#define CRYPTODEV_NAME_MLX5_PMD mlx5_crypto Follow convention It should be crypto_mlx5
diff --git a/app/test/test_cryptodev.c b/app/test/test_cryptodev.c index 31201d93e1..e46668a1e0 100644 --- a/app/test/test_cryptodev.c +++ b/app/test/test_cryptodev.c @@ -14569,6 +14569,12 @@ test_cryptodev_cpu_aesni_gcm(void) return rc; } +static int +test_cryptodev_mlx5(void /*argv __rte_unused, int argc __rte_unused*/) +{ + return run_cryptodev_testsuite(RTE_STR(CRYPTODEV_NAME_MLX5_PMD)); +} + static int test_cryptodev_null(void) { @@ -14797,6 +14803,7 @@ REGISTER_TEST_COMMAND(cryptodev_openssl_autotest, test_cryptodev_openssl); REGISTER_TEST_COMMAND(cryptodev_aesni_gcm_autotest, test_cryptodev_aesni_gcm); REGISTER_TEST_COMMAND(cryptodev_cpu_aesni_gcm_autotest, test_cryptodev_cpu_aesni_gcm); +REGISTER_TEST_COMMAND(cryptodev_mlx5_autotest, test_cryptodev_mlx5); REGISTER_TEST_COMMAND(cryptodev_null_autotest, test_cryptodev_null); REGISTER_TEST_COMMAND(cryptodev_sw_snow3g_autotest, test_cryptodev_sw_snow3g); REGISTER_TEST_COMMAND(cryptodev_sw_kasumi_autotest, test_cryptodev_sw_kasumi); diff --git a/app/test/test_cryptodev.h b/app/test/test_cryptodev.h index 5bf1e8818b..262e545ee6 100644 --- a/app/test/test_cryptodev.h +++ b/app/test/test_cryptodev.h @@ -73,6 +73,8 @@ #define CRYPTODEV_NAME_BCMFS_PMD crypto_bcmfs #define CRYPTODEV_NAME_CN9K_PMD crypto_cn9k #define CRYPTODEV_NAME_CN10K_PMD crypto_cn10k +#define CRYPTODEV_NAME_MLX5_PMD mlx5_crypto + enum cryptodev_api_test_type { CRYPTODEV_API_TEST = 0, diff --git a/doc/guides/cryptodevs/mlx5.rst b/doc/guides/cryptodevs/mlx5.rst index dd4705b744..2023dd1b3b 100644 --- a/doc/guides/cryptodevs/mlx5.rst +++ b/doc/guides/cryptodevs/mlx5.rst @@ -92,6 +92,9 @@ The mlxreg dedicated tool should be used as follows: The "wrapped_crypto_operational" value will be "0x00000001" if the mode was successfully changed to operational mode. + The mlx5 crypto PMD can be verfied by running the test application: + ./build/app/test/dpdk-test -c 1 -n 1 -w <dev>,class=crypto,wcs_file=<file_path> + RTE>>cryptodev_mlx5_autotest Driver options --------------