[PATCH] cryptodev: add algo enums to string conversion APIs

Zhang, Fan fanzhang.oss at gmail.com
Wed Dec 14 10:32:27 CET 2022


On 12/12/2022 3:10 PM, Akhil Goyal wrote:
> Symmetric/Asymmetric algorithm strings are accessed by application
> using arrays in cryptodev lib, which hampers new algorithms addition
> in the array due to ABI breakage.
> These arrays are now deprecated and will be removed in next ABI break
> release.
> New APIs are added for getting the algorithm strings based on enum values.
>
> Signed-off-by: Akhil Goyal <gakhil at marvell.com>
> ---
>   app/test-crypto-perf/cperf_options_parsing.c |   6 +-
>   app/test/test_cryptodev_asym.c               |   2 +-
>   app/test/test_cryptodev_security_ipsec.c     |   8 +-
>   doc/guides/rel_notes/deprecation.rst         |   7 +
>   drivers/crypto/openssl/rte_openssl_pmd_ops.c |   2 +-
>   drivers/crypto/qat/qat_sym_session.c         |   7 +-
>   examples/l2fwd-crypto/main.c                 |  12 +-
>   lib/cryptodev/cryptodev_trace_points.c       |  12 ++
>   lib/cryptodev/rte_crypto_asym.h              |   1 +
>   lib/cryptodev/rte_crypto_sym.h               |   3 +
>   lib/cryptodev/rte_cryptodev.c                | 182 ++++++++++++++++++-
>   lib/cryptodev/rte_cryptodev.h                |  52 ++++++
>   lib/cryptodev/rte_cryptodev_trace.h          |  32 ++++
>   lib/cryptodev/version.map                    |  10 +
>   14 files changed, 309 insertions(+), 27 deletions(-)
Acked-by: Fan Zhang <fanzhang.oss at gmail.com>


More information about the dev mailing list