From patchwork Fri Oct 7 13:46:49 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Power, Ciara" X-Patchwork-Id: 117559 Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 3306BA00C3; Fri, 7 Oct 2022 15:47:06 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id CE4C5427F6; Fri, 7 Oct 2022 15:47:05 +0200 (CEST) Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by mails.dpdk.org (Postfix) with ESMTP id 8111940042 for ; Fri, 7 Oct 2022 15:47:04 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1665150424; x=1696686424; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=+WAR2TAwJL+Gf5LDxy8oaaGr/CJhu47JArCgfmGjzzw=; b=NTIrXbYMpLpqzm4tDNgtEVS/qkNjaj5XFE9hKG77nYqF5/BSg+EM9GzN NqNtdSPD7SAxc1/2DucFIRuTne8dDay7RCeM9hE23PE/tTTXDvsEn9nfP VboFeozyRQ3GVCSg4Y/LZguL6fJETSrZ3YHMgCLvm1LJW7bMQIa2hGoky syvTCfvUxcRmGOj6D0r6dAw6U0eGb6tBpz1HtEKUKgqQkmZU+tGnrq/kg xC8DLvB6VTZWOejYvxdeo/5xX63s6NpjVTjJ8lsIYTMS7gQ9QuKa0yQKe BTGWwSQWL9qoBpi1spa8/FqqlkMQQs7AlXGWNKXQDRD1Ct6z/dA4mncGP w==; X-IronPort-AV: E=McAfee;i="6500,9779,10493"; a="390032306" X-IronPort-AV: E=Sophos;i="5.95,166,1661842800"; d="scan'208";a="390032306" Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Oct 2022 06:47:03 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10493"; a="625150213" X-IronPort-AV: E=Sophos;i="5.95,166,1661842800"; d="scan'208";a="625150213" Received: from silpixa00400355.ir.intel.com (HELO silpixa00400355.ger.corp.intel.com) ([10.237.222.163]) by orsmga002.jf.intel.com with ESMTP; 07 Oct 2022 06:47:02 -0700 From: Ciara Power To: Cc: dev@dpdk.org, gakhil@marvell.com, kai.ji@intel.com, Ciara Power Subject: [PATCH v5 0/4] add remaining SGL support to AESNI_MB Date: Fri, 7 Oct 2022 13:46:49 +0000 Message-Id: <20221007134653.929034-1-ciara.power@intel.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220812132334.75707-1-ciara.power@intel.com> References: <20220812132334.75707-1-ciara.power@intel.com> MIME-Version: 1.0 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 Currently, the intel-ipsec-mb library only supports SGL for GCM and ChaCha20-Poly1305 algorithms through the JOB API. To add SGL support for other algorithms, a workaround approach is added in the AESNI_MB PMD. SGL feature flags can now be added to the PMD. Some additional Snow3G SGL and AES tests are also added for various SGL input/output combinations that were not previously being tested. v5: - Rebased on for-main branch after session rework merged. - Dropped bug fix patch for sessionless tests, no longer applicable after session rework. - Removed some added AES-XTS tests as they are skipped for AESNI_MB and QAT and I can't verify them locally. - Added AES-XTS tests that had been accidentally removed in previous patchset versions. v4: Added error check when appending space for digest to buffer. v3: - Modified fix to reset sessions, and ensure values are then set for sessionless testcases. V2 fix just ensured the same values in session objects were reused, as they were not being reset, which was incorrect. - Reduced code duplication by adding a reusable function. - Changed int to uint64_t for total_len. v2: - Added documentation changes. - Added fix for sessionless cleanup. - Modified blockcipher tests to support various SGL types. - Added more SGL AES tests. - Small fixes. Ciara Power (4): test/crypto: fix wireless auth digest segment crypto/ipsec_mb: add remaining SGL support test/crypto: add OOP snow3g SGL tests test/crypto: add remaining blockcipher SGL tests app/test/test_cryptodev.c | 58 +++- app/test/test_cryptodev_aes_test_vectors.h | 310 +++++++++++++++++++- app/test/test_cryptodev_blockcipher.c | 50 ++-- app/test/test_cryptodev_blockcipher.h | 2 + app/test/test_cryptodev_hash_test_vectors.h | 8 +- doc/guides/cryptodevs/aesni_mb.rst | 1 - doc/guides/cryptodevs/features/aesni_mb.ini | 4 + doc/guides/rel_notes/release_22_11.rst | 5 + drivers/crypto/ipsec_mb/pmd_aesni_mb.c | 180 +++++++++--- 9 files changed, 543 insertions(+), 75 deletions(-)