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 76E0FA0563; Wed, 15 Apr 2020 13:07:40 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 3E8B31D69F; Wed, 15 Apr 2020 13:07:39 +0200 (CEST) Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by dpdk.org (Postfix) with ESMTP id 7DC6A1D5A8 for ; Wed, 15 Apr 2020 13:07:37 +0200 (CEST) IronPort-SDR: OdhUKwFdavwns1BikGTNP6u1PsUQSwIfgGOrn8trxR4uc1RiY76R+1BDuQXowl0QqZvFpBmTy+ NPmwLo5GrV9w== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga004.jf.intel.com ([10.7.209.38]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Apr 2020 04:07:36 -0700 IronPort-SDR: vmGf+OGuxKBMX/zhkmJuOeFyARuCeS0IauwKMbaZ+VhXfLwZjYhqMfdItvDy57WJjeAL3bQ1Ds 8MqsvB8U0gOg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.72,386,1580803200"; d="scan'208";a="400282149" Received: from fmsmsx103.amr.corp.intel.com ([10.18.124.201]) by orsmga004.jf.intel.com with ESMTP; 15 Apr 2020 04:07:35 -0700 Received: from fmsmsx155.amr.corp.intel.com (10.18.116.71) by FMSMSX103.amr.corp.intel.com (10.18.124.201) with Microsoft SMTP Server (TLS) id 14.3.439.0; Wed, 15 Apr 2020 04:07:35 -0700 Received: from FMSEDG002.ED.cps.intel.com (10.1.192.134) by FMSMSX155.amr.corp.intel.com (10.18.116.71) with Microsoft SMTP Server (TLS) id 14.3.439.0; Wed, 15 Apr 2020 04:07:35 -0700 Received: from NAM12-DM6-obe.outbound.protection.outlook.com (104.47.59.169) by edgegateway.intel.com (192.55.55.69) with Microsoft SMTP Server (TLS) id 14.3.439.0; Wed, 15 Apr 2020 04:07:35 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=IFX0FkpXNbJhSGxJVbOZr0dTR4S8T7HDnkH2MJyv8YdRYk2qt8zEFeAbN7F2xCnAjWPKvi6+Tq0diiw/gduBMgWIAt/5JSp4rWYFWCfpgLse3NaPog3AzBNAoIRVOOi3I3po5JYex6/kaxJUccdlsYm3xUnj9eDAc2TCY76s6Cui/BwBxrSJf4E0gMJIl26aJuaTTDXWtd9dCfOv41s2vtUwYfuHFjZ3Pqgt20fG9yDPWV1vhRCwrBznT8+TlchBgBQnUOqf+uHIbNLXCWgDTFbsoXwHMOQ/hFLXrXtAr6Y0OkHBHK0PldKk69aD/SNBa7ncfIfhyWdyZGKSAIyO7A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=oqc90gVfDoVUu15cBFA762b3R9l0p3t1+C+siP1oPt0=; b=Im7wiKUv6aXITkNIV8au+BGF4QIguDl02URQeq2aL8bJCC4NcVkIUs0bZy2eDYwoFmtE3zlUUvg3uNVFYufsy9MLeqR3ePLdvMcjoECTRYsK41L0tRTHQo+3LgL+RKWKJgVtNvOwzRdTiXL2b5BHFtmwIH8cEBS5zC1jnsK8TIK6t037aidpea6DCbcLmJKIquN9T0XyQMGJKmQeMOjMfaeFzU1RAmxzvkpLEfivSPUKNmcEQZ6WKRWaQet6wsLJJO4LR4tfgSU3JTcs5HY2E0S4cNAwM/AgVxMQAmgJk85ILAVli7CYlw57VmDy8DnWqFVG8BqttGkUZqx0RiwxDA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel.onmicrosoft.com; s=selector2-intel-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=oqc90gVfDoVUu15cBFA762b3R9l0p3t1+C+siP1oPt0=; b=itQ4EPkRI1znYyNCeGgtqosPXLTuewPMh+9aTbR7G+0PQozI3a1lucq3pD1Xi2FDSDT43azWk5uVVjJz7Pz3t+P65o/ZPRh7uOJgM/byX3lb0usOKrHkuqA7Fnaz6Cauq+3oR6XV76xOw19DnNjeoWQJV0rfU296VimNAUIbZCs= Received: from SN6PR11MB3101.namprd11.prod.outlook.com (2603:10b6:805:d8::23) by SN6PR11MB2911.namprd11.prod.outlook.com (2603:10b6:805:d2::33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2900.17; Wed, 15 Apr 2020 11:07:34 +0000 Received: from SN6PR11MB3101.namprd11.prod.outlook.com ([fe80::7d0f:735a:8d8b:1d40]) by SN6PR11MB3101.namprd11.prod.outlook.com ([fe80::7d0f:735a:8d8b:1d40%7]) with mapi id 15.20.2900.028; Wed, 15 Apr 2020 11:07:33 +0000 From: "De Lara Guarch, Pablo" To: "O'loingsigh, Mairtin" CC: "dev@dpdk.org" Thread-Topic: [PATCH v5] crypto/aesni_mb: support DOCSIS AES-256 Thread-Index: AQHWEwTzT58D9cFQGEa7FdIagQLZ/qh6BdBg Date: Wed, 15 Apr 2020 11:07:33 +0000 Message-ID: References: <1586531010-32279-1-git-send-email-mairtin.oloingsigh@intel.com> <1586941457-28531-1-git-send-email-mairtin.oloingsigh@intel.com> In-Reply-To: <1586941457-28531-1-git-send-email-mairtin.oloingsigh@intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-reaction: no-action dlp-version: 11.2.0.6 authentication-results: spf=none (sender IP is ) smtp.mailfrom=pablo.de.lara.guarch@intel.com; x-originating-ip: [109.255.188.24] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 396882fe-6a97-4e7f-b08f-08d7e12d32e2 x-ms-traffictypediagnostic: SN6PR11MB2911: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:4125; x-forefront-prvs: 0374433C81 x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:SN6PR11MB3101.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFTY:; SFS:(10019020)(366004)(376002)(396003)(346002)(136003)(39860400002)(6636002)(64756008)(9686003)(52536014)(66946007)(66446008)(66556008)(66476007)(8676002)(2906002)(8936002)(478600001)(76116006)(81156014)(5660300002)(26005)(33656002)(186003)(4326008)(7696005)(6862004)(71200400001)(55016002)(86362001)(55236004)(53546011)(6506007)(316002); DIR:OUT; SFP:1102; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: H9iYP94mm9jmHa15CB1v9l9fw1kA8ACcX6aqipwqvGZwL4AEQyftT5QWM0R+Gpqte9sWOjA5PsNlxmpSmnBDdfTFBK+ZTswKzF9SnsoS8SRgXZMF0bdxZKXjCjS6J4LPFPosH59++3n0Y3IncuDAdSj5IoyFoHGT8QsFn0Qv0ckH8cTlWcRRl803tFgaAQmUpmJJvVZRwKN/wNpmoqUctboawS5IA2fkwC3OEHQ0qW4+XX5/RczGoAZPWDaS1c0m5x5PepknKly1B4LbuBLScoSgVErePKf8jhzFhNtOVUuLXh5J/vsgQr6qM/yWF4I4UNsWuInrthZ4jCV4SApr23KpshDnbNmZFrYXugjF69nq95Ok+IHECUx8ABzVexGrekdjVVa4AqXInRVnbd9y4cf9H42Ed1N+sQ26lx1zMhKGy/ZcXmhBZRRbxpomCXzx x-ms-exchange-antispam-messagedata: qudIRaRjSsFajvHqhMRm3yyeuV41H93h4BX9RCV16/KFFE+v5QEdwJYhm4mVYuKZX4yxsNlwWH2U7FTf0Q/xWDGPmlcDnJv09BabbtcjzE0jDSjnqtVUn8t35S2GW2bl5WwGzqwtw9osF9jjJNnvDg== Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-Network-Message-Id: 396882fe-6a97-4e7f-b08f-08d7e12d32e2 X-MS-Exchange-CrossTenant-originalarrivaltime: 15 Apr 2020 11:07:33.7550 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: RfgyEElg1NWjyRCslxUtntGSgfzKwr7H6Dx2PEgfEzw1E3IYZFox2hCdLCFuvQazpRlX5gqdBTGmPQmLZgU2EEqx1VWmf0RpSjiVVTGeVqE= X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN6PR11MB2911 X-OriginatorOrg: intel.com Subject: Re: [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" Hi Mairtin, > -----Original Message----- > From: O'loingsigh, Mairtin > Sent: Wednesday, April 15, 2020 10:04 AM > To: De Lara Guarch, Pablo > Cc: dev@dpdk.org; O'loingsigh, Mairtin > Subject: [PATCH v5] crypto/aesni_mb: support DOCSIS AES-256 >=20 > This patch adds support for DOCSIS AES-256 when using AESNI-MB >=20 > 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(+) >=20 > 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 current= ly > supports > only inline IPsec protocol offload. >=20 > +* **Updated the AESNI MB PMD.** > + > + Updated the AESNI PMD with additional DOCSIS algorithm > + > + * Added support for AES-256 DOCSIS >=20 > 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[] =3D { > }, > .iv_size =3D { > .min =3D 16, > +#if IMB_VERSION_NUM >=3D IMB_VERSION(0, 53, 3) > + .max =3D 32, > + .increment =3D 16 > +#else This should be done in "key_size", not iv_size. Thanks, Pablo