From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 8BA04A00C3; Thu, 3 Feb 2022 17:05:34 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 2947340143; Thu, 3 Feb 2022 17:05:34 +0100 (CET) Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) by mails.dpdk.org (Postfix) with ESMTP id 957B340140 for ; Thu, 3 Feb 2022 17:05:32 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1643904332; x=1675440332; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=OBtge+SuxbGx00NwNopQOk7a4W+2OY+ocbmjrJhvPIs=; b=GYZpbIEQw3o3SmJ/YYlA2LKfp0Or1fxJW/Sth7CFSX97DMfcJ/asTu2M GuSm52ugYSfF6Aellzb8O20WagtumfJ1CvojyS0lSlkHETIdmpSxd7MMd WdAmmcFuNcKAgMWoiQ+dPMmt6pwYE40jqOwXF3WJNgq17nzIIktqx4kHW eAoesGBMRyMIZF7rusYBswt9SezvPP9+8ltK7iUN4PtM0PE5i+a7v8Dbd gTg3ESAdrtLGnZZMzA/a/GvkwI0H41qTelewR2e1tk0r7V858lQ6lMMzj Cju1Fo1CFePxx6Y1Tsmx6Ndjdin0NYYAIGCk4Xjoynn+shj+IZLHMvxtS A==; X-IronPort-AV: E=McAfee;i="6200,9189,10246"; a="308902079" X-IronPort-AV: E=Sophos;i="5.88,340,1635231600"; d="scan'208";a="308902079" Received: from orsmga007.jf.intel.com ([10.7.209.58]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Feb 2022 08:05:30 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.88,340,1635231600"; d="scan'208";a="523972029" Received: from silpixa00400355.ir.intel.com (HELO silpixa00400355.ger.corp.intel.com) ([10.237.222.49]) by orsmga007.jf.intel.com with ESMTP; 03 Feb 2022 08:05:29 -0800 From: Ciara Power To: dev@dpdk.org Cc: roy.fan.zhang@intel.com, gakhil@marvell.com, anoobj@marvell.com, mdr@ashroe.eu, Ciara Power Subject: [PATCH v3 0/4] crypto: improve asym session usage Date: Thu, 3 Feb 2022 16:04:45 +0000 Message-Id: <20220203160449.1638311-1-ciara.power@intel.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org This patchset includes improvements for the asymmetric session. The main change is to the session structure, which is now a single buffer, rather than having pointers to private data elsewhere. This session structure is now hidden in an internal header, so the app will never use it directly. Some other changes include adding a user data API, and modifying the return value for the create session function. v3: - Added documentation in relevant patches. - Fixed setting user data size. - Fixed hiding structure, it should not be hidden from PMDs. - Fixed some other small formatting issues. - Increased size of max_priv_session_sz to uint16_t. - Removed trace for asym session init function that was previously removed. Ciara Power (4): crypto: use single buffer for asymmetric session crypto: hide asym session structure crypto: add asym session user data API crypto: modify return value for asym session create app/test-crypto-perf/cperf_ops.c | 22 +- app/test/test_cryptodev_asym.c | 316 ++++++------------- doc/guides/prog_guide/cryptodev_lib.rst | 83 ++--- doc/guides/rel_notes/release_22_03.rst | 13 + drivers/crypto/cnxk/cn10k_cryptodev_ops.c | 6 +- drivers/crypto/cnxk/cn9k_cryptodev_ops.c | 6 +- drivers/crypto/cnxk/cnxk_cryptodev_ops.c | 11 +- drivers/crypto/octeontx/otx_cryptodev_ops.c | 29 +- drivers/crypto/openssl/rte_openssl_pmd.c | 5 +- drivers/crypto/openssl/rte_openssl_pmd_ops.c | 23 +- drivers/crypto/qat/qat_asym.c | 53 +--- lib/cryptodev/cryptodev_pmd.h | 32 +- lib/cryptodev/cryptodev_trace_points.c | 6 +- lib/cryptodev/rte_cryptodev.c | 217 ++++++++----- lib/cryptodev/rte_cryptodev.h | 114 ++++--- lib/cryptodev/rte_cryptodev_trace.h | 26 +- lib/cryptodev/version.map | 7 +- 17 files changed, 451 insertions(+), 518 deletions(-) -- 2.25.1