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 A429CA0563; Wed, 15 Apr 2020 11:04:23 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 85FFC1D630; Wed, 15 Apr 2020 11:04:23 +0200 (CEST) Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by dpdk.org (Postfix) with ESMTP id 37A461D630 for ; Wed, 15 Apr 2020 11:04:22 +0200 (CEST) IronPort-SDR: i10n+XtASSHlYVBb1+wrYKatUNrRRrNmiJas0jY7LLSR6IAS0fGjmXF2Tl+RlHnP8lFvA9Qf7h mt2jMziv6Jfg== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Apr 2020 02:04:21 -0700 IronPort-SDR: IxVBoLTiy26o7V31VNMgn/RNNTavcjkYgY28brxNUreOXusHQMbqTWAZSZRe27YDB/FFzLPQ26 Dy/VRbrlqaLQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.72,386,1580803200"; d="scan'208";a="453858499" Received: from irvmail001.ir.intel.com ([163.33.26.43]) by fmsmga005.fm.intel.com with ESMTP; 15 Apr 2020 02:04:20 -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 03F94JRP005397; Wed, 15 Apr 2020 10:04:19 +0100 Received: from sivswdev08.ir.intel.com (localhost [127.0.0.1]) by sivswdev08.ir.intel.com with ESMTP id 03F94JMg028649; Wed, 15 Apr 2020 10:04:19 +0100 Received: (from moloings@localhost) by sivswdev08.ir.intel.com with LOCAL id 03F94Jdp028620; Wed, 15 Apr 2020 10:04:19 +0100 From: Mairtin o Loingsigh To: pablo.de.lara.guarch@intel.com Cc: dev@dpdk.org, Mairtin o Loingsigh Date: Wed, 15 Apr 2020 10:04:17 +0100 Message-Id: <1586941457-28531-1-git-send-email-mairtin.oloingsigh@intel.com> X-Mailer: git-send-email 1.7.0.7 In-Reply-To: <1586531010-32279-1-git-send-email-mairtin.oloingsigh@intel.com> References: <1586531010-32279-1-git-send-email-mairtin.oloingsigh@intel.com> Subject: [dpdk-dev] [PATCH v5] 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 --- v2: Added IPSec MB version check v3: Added doc update v4: Added missing patch v5: Dropping test vector due to refactoring --- doc/guides/rel_notes/release_20_05.rst | 5 +++++ drivers/crypto/aesni_mb/rte_aesni_mb_pmd_ops.c | 6 ++++++ 2 files changed, 11 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..0d555ec29 100644 --- a/drivers/crypto/aesni_mb/rte_aesni_mb_pmd_ops.c +++ b/drivers/crypto/aesni_mb/rte_aesni_mb_pmd_ops.c @@ -319,8 +319,14 @@ static const struct rte_cryptodev_capabilities aesni_mb_pmd_capabilities[] = { }, .iv_size = { .min = 16, +#if IMB_VERSION_NUM >= IMB_VERSION(0, 53, 3) + .max = 32, + .increment = 16 +#else .max = 16, .increment = 0 +#endif + } }, } }, } -- 2.12.3