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 53630A04A8; Mon, 24 Jan 2022 16:04:47 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id ED7F9427E9; Mon, 24 Jan 2022 16:04:27 +0100 (CET) Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by mails.dpdk.org (Postfix) with ESMTP id 6FC39427CB for ; Mon, 24 Jan 2022 16:04:25 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1643036665; x=1674572665; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=ky5TGV7fs275XeUEJ3iNw8i6pAVDhB7yaqoAusHzUTk=; b=nMEtDGvb2Uq/jUlrgSOFjUsdAXZImuG3CmYghPVNEgRRlAv07jWslJJ5 cAe/FbjMeOz/Q/UZ7EtPzw3bTRNPyE/UaDyQP8A8+/4VZtHWsD6dVUK1N gP56uLbeyZB7GgbXM3owbpXDonxgW2VDY2DXoD18WU/sgpWLguJkgUCbV Jl+lz8fGPB+g9z4e1NG8hMLgz69f5MjKrV558uhEIR70feoeS2tGnKMcz g7JtXn+uBvweX1fYWokB+V64rKdLoFk/rufJw/M0BOBCiVZqDJMq96trm wM6WQbZ4XFvlVPMG8Jy3i/CUQKBkWzFE8jViGn1cnCD64RUp81In8RYKU A==; X-IronPort-AV: E=McAfee;i="6200,9189,10236"; a="226735426" X-IronPort-AV: E=Sophos;i="5.88,311,1635231600"; d="scan'208";a="226735426" Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Jan 2022 07:03:47 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.88,311,1635231600"; d="scan'208";a="476744052" Received: from silpixa00400355.ir.intel.com (HELO silpixa00400355.ger.corp.intel.com) ([10.237.222.49]) by orsmga003.jf.intel.com with ESMTP; 24 Jan 2022 07:03:46 -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 v2 0/4] crypto: improve asym session usage Date: Mon, 24 Jan 2022 15:03:35 +0000 Message-Id: <20220124150339.280090-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. --- Documentation will be added in a future version, along with further changes from v1 feedback (IOVA address), if required. 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 | 306 ++++++------------- drivers/crypto/cnxk/cn10k_cryptodev_ops.c | 6 +- drivers/crypto/cnxk/cn9k_cryptodev_ops.c | 6 +- drivers/crypto/cnxk/cnxk_cryptodev_ops.c | 15 +- drivers/crypto/cnxk/cnxk_cryptodev_ops.h | 4 +- drivers/crypto/octeontx/otx_cryptodev_ops.c | 33 +- drivers/crypto/openssl/rte_openssl_pmd.c | 5 +- drivers/crypto/openssl/rte_openssl_pmd_ops.c | 27 +- drivers/crypto/qat/qat_asym.c | 57 +--- drivers/crypto/qat/qat_asym.h | 4 +- lib/cryptodev/cryptodev_pmd.h | 38 ++- lib/cryptodev/cryptodev_trace_points.c | 3 + lib/cryptodev/rte_cryptodev.c | 216 ++++++++----- lib/cryptodev/rte_cryptodev.h | 114 ++++--- lib/cryptodev/rte_cryptodev_trace.h | 18 +- lib/cryptodev/version.map | 6 +- 17 files changed, 406 insertions(+), 474 deletions(-) -- 2.25.1