From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by dpdk.org (Postfix) with ESMTP id E5B5F1B053 for ; Tue, 10 Jul 2018 10:42:02 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga007.jf.intel.com ([10.7.209.58]) by fmsmga104.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 10 Jul 2018 01:42:01 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.51,333,1526367600"; d="scan'208";a="55358630" Received: from silpixa00399466.ir.intel.com (HELO silpixa00399466.ger.corp.intel.com) ([10.237.223.220]) by orsmga007.jf.intel.com with ESMTP; 10 Jul 2018 01:41:59 -0700 From: Pablo de Lara To: declan.doherty@intel.com, akhil.goyal@nxp.com, shally.verma@caviumnetworks.com, ravi1.kumar@amd.com, jerin.jacob@caviumnetworks.com, roy.fan.zhang@intel.com, fiona.trahe@intel.com, tdu@semihalf.com, jianjay.zhou@huawei.com Cc: dev@dpdk.org, Pablo de Lara Date: Tue, 10 Jul 2018 01:36:07 +0100 Message-Id: <20180710003623.1463-1-pablo.de.lara.guarch@intel.com> X-Mailer: git-send-email 2.14.4 In-Reply-To: <20180608220234.10170-1-pablo.de.lara.guarch@intel.com> References: <20180608220234.10170-1-pablo.de.lara.guarch@intel.com> Subject: [dpdk-dev] [PATCH v6 00/16] Cryptodev API changes X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 10 Jul 2018 08:42:03 -0000 API changes in the cryptodev library, announced in the previous release, 18.05. Changes in v6: - Modified SGL feature flags, to use Linear Buffers (LB), instead of Flat Buffers (FB) - Rebased patchset 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 | 33 ++++- 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 | 164 ++++++--------------- 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, 629 insertions(+), 997 deletions(-) -- 2.14.4