From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 7E445A0563; Wed, 15 Apr 2020 13:51:49 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 41B521D6DD; Wed, 15 Apr 2020 13:51:48 +0200 (CEST) Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by dpdk.org (Postfix) with ESMTP id 070F11D6D2 for ; Wed, 15 Apr 2020 13:51:46 +0200 (CEST) IronPort-SDR: o7LFa8aVztM2u0hsTgZFjXFkR3AZ3S2s9wICvOLRbsOs1cDKpZkbjXGhME9BnYjpALRjbJBDFq hKDv/2LOJMJg== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Apr 2020 04:51:40 -0700 IronPort-SDR: A4gowRtra9mERpDcBxqv/loisc9C5kHVHjKj4k8RxN5PKU4/vpU522px9QWfGPmQ7qZ7N6j7mG GA3DBGh+ve3Q== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.72,386,1580803200"; d="scan'208";a="298974374" Received: from irvmail001.ir.intel.com ([163.33.26.43]) by FMSMGA003.fm.intel.com with ESMTP; 15 Apr 2020 04:51:39 -0700 Received: from sivswdev08.ir.intel.com (sivswdev08.ir.intel.com [10.237.217.47]) by irvmail001.ir.intel.com (8.14.3/8.13.6/MailSET/Hub) with ESMTP id 03FBpcYd029592; Wed, 15 Apr 2020 12:51:38 +0100 Received: from sivswdev08.ir.intel.com (localhost [127.0.0.1]) by sivswdev08.ir.intel.com with ESMTP id 03FBpcOM015759; Wed, 15 Apr 2020 12:51:38 +0100 Received: (from moloings@localhost) by sivswdev08.ir.intel.com with LOCAL id 03FBpcvI015755; Wed, 15 Apr 2020 12:51:38 +0100 From: Mairtin o Loingsigh To: pablo.de.lara.guarch@intel.com Cc: dev@dpdk.org, Mairtin o Loingsigh Date: Wed, 15 Apr 2020 12:51:35 +0100 Message-Id: <1586951495-15679-1-git-send-email-mairtin.oloingsigh@intel.com> X-Mailer: git-send-email 1.7.0.7 In-Reply-To: <1586941457-28531-1-git-send-email-mairtin.oloingsigh@intel.com> References: <1586941457-28531-1-git-send-email-mairtin.oloingsigh@intel.com> Subject: [dpdk-dev] [PATCH v6] crypto/aesni_mb: support DOCSIS AES-256 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: , Errors-To: dev-bounces@dpdk.org Sender: "dev" This patch adds support for DOCSIS AES-256 when using AESNI-MB Signed-off-by: Mairtin o Loingsigh Acked-by: Pablo de Lara --- This patch depends on these two patches: v2: Added IPSec MB version check v3: Added doc update v4: Added missing patch v5: Dropping test vector due to refactoring v6: Fix key size --- doc/guides/rel_notes/release_20_05.rst | 5 +++++ drivers/crypto/aesni_mb/rte_aesni_mb_pmd_ops.c | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/doc/guides/rel_notes/release_20_05.rst b/doc/guides/rel_notes/release_20_05.rst index 6b1a7c58c..72d2f6c27 100644 --- a/doc/guides/rel_notes/release_20_05.rst +++ b/doc/guides/rel_notes/release_20_05.rst @@ -81,6 +81,11 @@ New Features by making use of the event device capabilities. The event mode currently supports only inline IPsec protocol offload. +* **Updated the AESNI MB PMD.** + + Updated the AESNI PMD with additional DOCSIS algorithm + + * Added support for AES-256 DOCSIS Removed Items ------------- diff --git a/drivers/crypto/aesni_mb/rte_aesni_mb_pmd_ops.c b/drivers/crypto/aesni_mb/rte_aesni_mb_pmd_ops.c index 845661174..434e2652b 100644 --- a/drivers/crypto/aesni_mb/rte_aesni_mb_pmd_ops.c +++ b/drivers/crypto/aesni_mb/rte_aesni_mb_pmd_ops.c @@ -314,8 +314,13 @@ static const struct rte_cryptodev_capabilities aesni_mb_pmd_capabilities[] = { .block_size = 16, .key_size = { .min = 16, +#if IMB_VERSION_NUM >= IMB_VERSION(0, 53, 3) + .max = 32, + .increment = 16 +#else .max = 16, .increment = 0 +#endif }, .iv_size = { .min = 16, -- 2.12.3