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 708D5A00C4; Wed, 21 Sep 2022 14:50:44 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 4AC534067C; Wed, 21 Sep 2022 14:50:44 +0200 (CEST) Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by mails.dpdk.org (Postfix) with ESMTP id 19A9D4014F for ; Wed, 21 Sep 2022 14:50:41 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1663764642; x=1695300642; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=7br0uJYrEs5ttBrEDVXsTDbifjqUyiYBbK+f6QeRjPk=; b=g/f+z+gip72ulONT+vmPTyy+ALtAfV9e67VdCVzr49PagNo1ZJH6O44p YhL6ypuO+FRCwoFcjgfaalZOL1/eZ6KMiOU+uJajYv2k7/gZq66M6jTsK VE8MfZujhJRDKlXSE8fZ0o9khh5n3YJadZr8n0j/Ls3I2JUY6i7yRmdnz j2DBuPoNotqs1Euk/o1cF/CR3v7uuYnhqL8XFqF2JCl2eh8oDOSsWbN6a f9eDGZJIVqy6512VLEKnukMvADXiPn/CfU6Ux1VYhS6RcoH3H7iYXU+NP zqQaY9jdt4Pw62Y4iqDwc9njLqQ3E8feTaNM20hvCO+8vueOHpQp5mXx7 Q==; X-IronPort-AV: E=McAfee;i="6500,9779,10477"; a="287064390" X-IronPort-AV: E=Sophos;i="5.93,333,1654585200"; d="scan'208";a="287064390" Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 Sep 2022 05:50:41 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.93,333,1654585200"; d="scan'208";a="619335504" Received: from silpixa00400355.ir.intel.com (HELO silpixa00400355.ger.corp.intel.com) ([10.237.222.163]) by orsmga002.jf.intel.com with ESMTP; 21 Sep 2022 05:50:40 -0700 From: Ciara Power To: Cc: dev@dpdk.org, kai.ji@intel.com, roy.fan.zhang@intel.com, pablo.de.lara.guarch@intel.com, Ciara Power Subject: [PATCH v3 0/5] add remaining SGL support to AESNI_MB Date: Wed, 21 Sep 2022 12:50:31 +0000 Message-Id: <20220921125036.9104-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 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 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. This patchset also includes a fix for SGL wireless operations, session cleanup and session creation for sessionless operations. Some additional Snow3G SGL and AES tests are also added for various SGL input/output combinations that were not previously being tested. 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 (5): test/crypto: fix wireless auth digest segment crypto/ipsec_mb: fix session creation for sessionless 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 | 56 +++- app/test/test_cryptodev_aes_test_vectors.h | 345 +++++++++++++++++--- 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/ipsec_mb_private.h | 12 +- drivers/crypto/ipsec_mb/pmd_aesni_mb.c | 180 ++++++++-- lib/cryptodev/rte_cryptodev.c | 1 + 11 files changed, 547 insertions(+), 117 deletions(-) -- 2.25.1