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 3AAD6A0577; Tue, 14 Apr 2020 10:45:53 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 4165E1C220; Tue, 14 Apr 2020 10:45:52 +0200 (CEST) Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by dpdk.org (Postfix) with ESMTP id 3C18E1C205 for ; Tue, 14 Apr 2020 10:45:51 +0200 (CEST) IronPort-SDR: RfxuEd0Ms3cDKp/OBUnqoJG56gA5xWI+9sWjS8N8VUbwf85LHK8xRf4ef9XKVewsk0AtY8njCo yegjqbFEss6Q== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 Apr 2020 01:45:49 -0700 IronPort-SDR: ViKyAuESGZejnNmi9L8YaR8AkMI64S+keXQhaiWwiy7QeLE6gbAMd+ZsOxmnNkuetpoqX2gE3A BpebaBA0t8Mw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.72,382,1580803200"; d="scan'208";a="363317028" Received: from fmsmsx106.amr.corp.intel.com ([10.18.124.204]) by fmsmga001.fm.intel.com with ESMTP; 14 Apr 2020 01:45:47 -0700 Received: from fmsmsx101.amr.corp.intel.com (10.18.124.199) by FMSMSX106.amr.corp.intel.com (10.18.124.204) with Microsoft SMTP Server (TLS) id 14.3.439.0; Tue, 14 Apr 2020 01:45:47 -0700 Received: from FMSEDG002.ED.cps.intel.com (10.1.192.134) by fmsmsx101.amr.corp.intel.com (10.18.124.199) with Microsoft SMTP Server (TLS) id 14.3.439.0; Tue, 14 Apr 2020 01:45:46 -0700 Received: from NAM12-DM6-obe.outbound.protection.outlook.com (104.47.59.171) by edgegateway.intel.com (192.55.55.69) with Microsoft SMTP Server (TLS) id 14.3.439.0; Tue, 14 Apr 2020 01:45:34 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=njAQ0qkJvqGz5235h5xryuPni7989AZ3kBklMr8erCip2MeKj/KjVnZ5O0ZZB5D88S/hExdH+GpCBxirxfnscRUUViLrNLvhERZQhzdiFJi9FfoNA4fS2IdshRMYSopMqMCPUhQsXttassm3diKlRqWePW2p1W/PXb6/UBBnbKQFejC+7yt8keCQRADX615nn6ubOYcZg1v5jkuJhb2gxOXarXww4Is7yiNn+ksw1WDdTYQbuZKWDEstD86K9QwO5KdlHxC5kkKPwjgRb4WnNxJphZlbgjU/pPW+3ehqGcgRvVwEW1On+cZMvHnbaALfTmj5I9+NuHgraiU0Do208w== 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=MRL5v++R6Dhr2Q+LECTR/SpgcCF7JrTPXa3FATM4C1I=; b=X0NPFiG7w0/TjG6gNPbUqU9fDjH6eyT/XWIQ7usO9Yfb3wAgBXvHfauHDGFZ72nyDTI4j4akOWgUXE5CNg8K9K2g2TWXZu9iCX/ocxZhbHybimoMHMvsFtWDDJOkmJUPad/YEDTksxCT026Y16RrWzEXYt2MeMxf7+YwTiblVgG+qIx3ou/YbPcoWW71qW1otzw5zk3kzZWBX6feaImpMOYkbjB4EdYYlLkiGYJUxb6m3v7XD9PBT5OUKIabaCUgVZFQjbQK2HP1bccq/3UanbeHEzErb5jIZJuaZK0bwQsBtJd8JVvNVA7KUxD1oDUPszmvmUvYgB4JulEfOwDGiQ== 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=MRL5v++R6Dhr2Q+LECTR/SpgcCF7JrTPXa3FATM4C1I=; b=Z0UWR8Vv0WxtbRVrPkNQ04UZKx3x9m/0LpfUE8+C48saZl54QsIEFoiVZBSWkCnl6beQsuUKCFqwsgOHKJCa6lgfBdbRdzryKtnC7oFKP51+32Uwahrjym1w+D8y9ShzoI5tzLTwBPF98+8U2GGDXrToouW8jatcqHw1cECdKDI= Received: from SN6PR11MB3101.namprd11.prod.outlook.com (2603:10b6:805:d8::23) by SN6PR11MB3407.namprd11.prod.outlook.com (2603:10b6:805:bd::32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2900.26; Tue, 14 Apr 2020 08:45:31 +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.015; Tue, 14 Apr 2020 08:45:31 +0000 From: "De Lara Guarch, Pablo" To: "O'loingsigh, Mairtin" CC: "dev@dpdk.org" Thread-Topic: [PATCH v4 1/2] crypto/aesni_mb: support DOCSIS AES-256 Thread-Index: AQHWD0luGaCiVmGXTUuwhXCatO6zqah4Uwfg Date: Tue, 14 Apr 2020 08:45:31 +0000 Message-ID: References: <1586354671-25703-1-git-send-email-mairtin.oloingsigh@intel.com> <1586531010-32279-1-git-send-email-mairtin.oloingsigh@intel.com> In-Reply-To: <1586531010-32279-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: [192.198.151.164] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 0f8c47d3-ea2d-4687-094a-08d7e05030a8 x-ms-traffictypediagnostic: SN6PR11MB3407: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:7219; x-forefront-prvs: 0373D94D15 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)(39860400002)(376002)(396003)(136003)(346002)(6506007)(66446008)(53546011)(186003)(52536014)(478600001)(66556008)(64756008)(2906002)(5660300002)(316002)(9686003)(6862004)(8676002)(26005)(76116006)(7696005)(66946007)(6636002)(71200400001)(86362001)(8936002)(66476007)(81156014)(33656002)(4326008)(55016002); DIR:OUT; SFP:1102; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: 0mIbsG7wUQC4T/NlB9TgRpQCsAvtIEwG1HPOMt9McZzxYG2ZSBpp2VGPYQuLQ6eH/aILFvvcW4WL7KSUvc1s9HOEWdXzqkYLSX1KkSJliSMhgzfmOWK7fQOWsyJTfByJac0GBKTYGB0vs5IV71q3kAWpFKe19XLSt+RKsGbAGDbV78pyNUPpo7Gq0T5OfA5K9KAbdVIc+62dfb24bjR8dJjMnistvOuc2lUoElLX1ouHhfRobqHjcgJfzNSxwyMzj8SM/wPWG+/K/nKODraexyy2HjZKBKXZrmcEK6LVyalpnpk1CVADSfW6Gy0J6zSO8HJmpPImvHYkhm+x8aLxBBqqXsju/LCWLEelHCbn1b2V+os3zlCbk7OH56LmofOqDvcArrkp+2EZdPf6wS8E0nWyAHJ7eFniLgy4B77KcDmzvakZGf9KVUygiBhYSoZe x-ms-exchange-antispam-messagedata: HXcanJp9wRzMnOLC7UVnbQXvMm/x8sE82VdOT63i9VztcknH+xCSpxOu+iiCPQM9BMmd8NNQIf3MoYc0ZZICtv2jYZky7l2nBMYd1QISNxRChyOzhVBfQG7kk2eYWGz2BvKeUKNLNtRyg7oXC36dhw== Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-Network-Message-Id: 0f8c47d3-ea2d-4687-094a-08d7e05030a8 X-MS-Exchange-CrossTenant-originalarrivaltime: 14 Apr 2020 08:45:31.2899 (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: aeOyNT/IxdXwF24j1Lmsd8O1v3wo3QpwywqEImmCj8JES7TsnS/rsA25z5jPMyZ5MLh8MOGm8gxWZJ+j3uKjqImGb+DEigguCqIHvIQ0mOU= X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN6PR11MB3407 X-OriginatorOrg: intel.com Subject: Re: [dpdk-dev] [PATCH v4 1/2] 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: Friday, April 10, 2020 4:03 PM > To: De Lara Guarch, Pablo > Cc: dev@dpdk.org; O'loingsigh, Mairtin > Subject: [PATCH v4 1/2] 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 > --- > 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 > .max =3D 16, > .increment =3D 0 > +#endif Apologies, I missed this earlier and I just realized this is wrong. This should be done in key_size, not iv_size. Thanks, Pablo > + > } > }, } > }, } > -- > 2.12.3