[v5,00/16] Cryptodev API changes
mbox series

Message ID 20180705020805.38308-1-pablo.de.lara.guarch@intel.com
Headers show
Series
  • Cryptodev API changes
Related show

Message

De Lara Guarch, Pablo July 5, 2018, 2:07 a.m. UTC
API changes in the cryptodev library, announced in the previous release, 18.05.

Changes in v5:
- Modified .ini files with new SGL/OOP flags 
- Modified overview cryptodev documentation, removing the clarification
  note on scatter-gather limitations and including the meaning
  of the new feature flags

Changes in v4:
- Fixed MVSAM max number of sessions (Tomasz Duszynksi)
- Changed OUT_OF_PLACE to OOP in feature flags (Akhil Goyal)
- Added missing feature flags in aesni_gcm and openssl PMDs (Akhil
  Goyal)
- Removed unneeded config parameters (related to max number of sessions)
  (Akhil Goyal)
- Restructured code in crypto-perf and l2fwd-crypto to calculate number
  of sessions needed (Akhil Goyal) 

Changes in v3:
- Rephrased comments for new sgl feature flags
- Added patch checking if there a device supports
  symmetric sessions
- Extended PMD session API renaming

Changes in v2:
- Instead of removing max_nb_sessions in info structure,
  a new value `0` is allowed, to indicate that the PMD
  does not have any limitation on the number of sessions
  to be managed
- Modified crypto applications to check for new value `0`
  on max_nb_sessions
- Modified MVSAM PMD to parse max_nb_sessions,
  since that parameter is not generic to any PMD anymore
- Removed attach/detach session API, as announced
- Removed deprecated function that was not removed in
  previous patchset
- Renamed PMD symmetric session API, to allow asymmetric
  session API to be added in the future

Pablo de Lara (16):
  cryptodev: replace bus specific struct with generic dev
  cryptodev: remove max number of sessions per queue
  app/crypto-perf: limit number of sessions
  test/crypto: limit number of sessions
  examples/l2fwd-crypto: limit number of sessions
  examples/ipsec-secgw: check for max supported sessions
  crypto/mvsam: parse max number of sessions
  cryptodev: define value for unlimited sessions
  cryptodev: remove max number of sessions parameter
  doc: remove unneeded deprecation notice
  cryptodev: remove queue start/stop functions
  cryptodev: remove old get session size functions
  cryptodev: replace mbuf scatter gather flag
  cryptodev: remove attach/detach session API
  cryptodev: rename PMD symmetric session API
  cryptodev: check if symmetric sessions are supported

 app/test-crypto-perf/main.c                        |  34 ++++-
 config/common_base                                 |   7 -
 config/rte_config.h                                |   7 -
 doc/guides/cryptodevs/dpaa2_sec.rst                |   5 -
 doc/guides/cryptodevs/dpaa_sec.rst                 |   5 -
 doc/guides/cryptodevs/features/aesni_gcm.ini       |   3 +-
 doc/guides/cryptodevs/features/default.ini         |   6 +-
 doc/guides/cryptodevs/features/dpaa2_sec.ini       |   6 +-
 doc/guides/cryptodevs/features/dpaa_sec.ini        |   6 +-
 doc/guides/cryptodevs/features/null.ini            |   2 +-
 doc/guides/cryptodevs/features/openssl.ini         |   3 +-
 doc/guides/cryptodevs/features/qat.ini             |   6 +-
 doc/guides/cryptodevs/overview.rst                 |  32 +++-
 doc/guides/prog_guide/cryptodev_lib.rst            |   7 +-
 doc/guides/rel_notes/deprecation.rst               |  25 ----
 doc/guides/rel_notes/release_18_08.rst             |  30 +++-
 drivers/crypto/aesni_gcm/aesni_gcm_pmd.c           |  14 +-
 drivers/crypto/aesni_gcm/aesni_gcm_pmd_ops.c       |  39 ++---
 drivers/crypto/aesni_gcm/aesni_gcm_pmd_private.h   |   2 -
 drivers/crypto/aesni_mb/rte_aesni_mb_pmd.c         |  13 +-
 drivers/crypto/aesni_mb/rte_aesni_mb_pmd_ops.c     |  39 ++---
 drivers/crypto/aesni_mb/rte_aesni_mb_pmd_private.h |   2 -
 drivers/crypto/armv8/rte_armv8_pmd.c               |  11 +-
 drivers/crypto/armv8/rte_armv8_pmd_ops.c           |  39 ++---
 drivers/crypto/armv8/rte_armv8_pmd_private.h       |   2 -
 drivers/crypto/ccp/ccp_crypto.c                    |  28 ++--
 drivers/crypto/ccp/ccp_pmd_ops.c                   |  37 ++---
 drivers/crypto/ccp/ccp_pmd_private.h               |   1 -
 drivers/crypto/ccp/rte_ccp_pmd.c                   |  20 +--
 drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c        |  52 +++----
 drivers/crypto/dpaa2_sec/dpaa2_sec_priv.h          |   2 -
 drivers/crypto/dpaa_sec/dpaa_sec.c                 |  81 ++---------
 drivers/crypto/dpaa_sec/dpaa_sec.h                 |   1 +
 drivers/crypto/kasumi/rte_kasumi_pmd.c             |  11 +-
 drivers/crypto/kasumi/rte_kasumi_pmd_ops.c         |  39 ++---
 drivers/crypto/kasumi/rte_kasumi_pmd_private.h     |   2 -
 drivers/crypto/mvsam/rte_mrvl_pmd.c                | 134 +++++++++++++++--
 drivers/crypto/mvsam/rte_mrvl_pmd_ops.c            |  46 ++----
 drivers/crypto/null/null_crypto_pmd.c              |  13 +-
 drivers/crypto/null/null_crypto_pmd_ops.c          |  39 ++---
 drivers/crypto/null/null_crypto_pmd_private.h      |   1 -
 drivers/crypto/openssl/rte_openssl_pmd.c           |  14 +-
 drivers/crypto/openssl/rte_openssl_pmd_ops.c       |  39 ++---
 drivers/crypto/openssl/rte_openssl_pmd_private.h   |   2 -
 drivers/crypto/qat/qat_sym.c                       |   2 +-
 drivers/crypto/qat/qat_sym.h                       |   2 +-
 drivers/crypto/qat/qat_sym_pmd.c                   |  21 +--
 drivers/crypto/qat/qat_sym_pmd.h                   |   1 -
 drivers/crypto/qat/qat_sym_session.c               |   6 +-
 drivers/crypto/scheduler/scheduler_pmd.c           |  13 +-
 drivers/crypto/scheduler/scheduler_pmd_ops.c       |  46 ++----
 drivers/crypto/snow3g/rte_snow3g_pmd.c             |  11 +-
 drivers/crypto/snow3g/rte_snow3g_pmd_ops.c         |  39 ++---
 drivers/crypto/snow3g/rte_snow3g_pmd_private.h     |   2 -
 drivers/crypto/virtio/virtio_cryptodev.c           |  22 +--
 drivers/crypto/virtio/virtio_rxtx.c                |   2 +-
 drivers/crypto/zuc/rte_zuc_pmd.c                   |  11 +-
 drivers/crypto/zuc/rte_zuc_pmd_ops.c               |  39 ++---
 drivers/crypto/zuc/rte_zuc_pmd_private.h           |   2 -
 examples/ipsec-secgw/ipsec-secgw.c                 |   6 +
 examples/l2fwd-crypto/main.c                       |  22 ++-
 lib/librte_cryptodev/rte_cryptodev.c               | 138 +++---------------
 lib/librte_cryptodev/rte_cryptodev.h               | 161 +++++----------------
 lib/librte_cryptodev/rte_cryptodev_pmd.c           |  12 +-
 lib/librte_cryptodev/rte_cryptodev_pmd.h           |  70 +--------
 lib/librte_cryptodev/rte_cryptodev_version.map     |   6 -
 test/test/test_cryptodev.c                         |  60 ++++++--
 test/test/test_cryptodev_blockcipher.c             |  21 ++-
 68 files changed, 625 insertions(+), 997 deletions(-)