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 7FC0EA2EFC for ; Tue, 15 Oct 2019 13:06:18 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 014C71EBBB; Tue, 15 Oct 2019 13:06:17 +0200 (CEST) Received: from EUR03-VE1-obe.outbound.protection.outlook.com (mail-eopbgr50082.outbound.protection.outlook.com [40.107.5.82]) by dpdk.org (Postfix) with ESMTP id 97D391EBA1; Tue, 15 Oct 2019 13:06:14 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=K2grQcEyrSNlkRZcQqzQmki3Kzru3nCuy41UDdXg8peAGr+UAsUXli/ck7riXks3CDm7zCSQouSGMm9IaSRXCuFlQqT8ZxZEzF1syRRrFwBfrSOqE3jZu3tjZDkxvclQLVm+fi4NzxsOvy+q7uH6ILnlbAs1olvEpI9wwtE8fyz5YhIvJVDoKzbsWDT13LtH0G2d2bYkz261KnE49y+ksahvsOEoOnmf5GysjfPzNE5Joy2elfp9VKdBPudR8/Ax/tUixBvta4yF0axFAywCSO62fwVrAZZQWLAjis11R5XQfQNROGmXsPaJ30HJFv0fdfNtZiB3xdw+/YZKUnl+1A== 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=n8w4jR23A3LqiH3IJapp/lu9tMfKWU6n+YdF8Uhyy+U=; b=Wwj50IANTrBU2WqHc4/wR8BPNjk8v8Hsvyk1Jxym1D/LNmsqoCKzRsq6leB+RS+MRmgt2i+welI1bir1o2ypGznHnmLsS7wim1gursT+o2HOIsA2UUGCLeFZeXkPSYASRx22u0FTALcE9MO3v+7oc3ZOryVRHMWj5rwjvxva1HHczRxs7dzEK3LnX7UjJ8XMpOTRXPBIE5dyxYm+ADs2cKXr+U+1wvAt20xcyjfygbNV/vbOwEKtK2KI6fWTaOh4CMNJUnm/z1vBAlCzo9T0st6i5coUtUxty5PHVK/rLU2ZR0UeFnfzdgQ7eqcSLzMyj0nMzHQNjLaOZU5TonW+ww== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=n8w4jR23A3LqiH3IJapp/lu9tMfKWU6n+YdF8Uhyy+U=; b=TglVDeBTLc08YClF/h07vwei+4gKmgXLI9UcdjO97drMcdRxW3PECaVn9Vf6xW6Se0WLLFQBv/261EaTRcX5/SKJD+YMg3aPj4EVxaNcEd6vVDMmrugVVQn8l0nEBCJMl6yFxw/GCg7DaAvaWFjrxIldLV4krPGzOHKkFk8kfD4= Received: from VE1PR04MB6639.eurprd04.prod.outlook.com (10.255.118.11) by VE1PR04MB6720.eurprd04.prod.outlook.com (20.179.234.147) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2347.18; Tue, 15 Oct 2019 11:06:13 +0000 Received: from VE1PR04MB6639.eurprd04.prod.outlook.com ([fe80::c045:5df2:ba1f:c3ee]) by VE1PR04MB6639.eurprd04.prod.outlook.com ([fe80::c045:5df2:ba1f:c3ee%5]) with mapi id 15.20.2347.023; Tue, 15 Oct 2019 11:06:13 +0000 From: Akhil Goyal To: "asomalap@amd.com" , "dev@dpdk.org" CC: "stable@dpdk.org" Thread-Topic: [dpdk-dev] [PATCH v1 4/6] crypto/ccp: updating ccp crypto capabilities ops Thread-Index: AQHVgyZyeP3zKgsFPkmzqJD78HqKCKdbiV+w Date: Tue, 15 Oct 2019 11:06:12 +0000 Message-ID: References: <20191015070144.93172-1-asomalap@amd.com> In-Reply-To: <20191015070144.93172-1-asomalap@amd.com> Accept-Language: en-IN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=akhil.goyal@nxp.com; x-originating-ip: [92.120.1.65] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 80a889e4-de0d-4be2-463f-08d7515fb153 x-ms-office365-filtering-ht: Tenant x-ms-traffictypediagnostic: VE1PR04MB6720: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:4303; x-forefront-prvs: 01917B1794 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(4636009)(396003)(346002)(376002)(39860400002)(136003)(366004)(199004)(189003)(66446008)(66556008)(2906002)(6246003)(11346002)(74316002)(305945005)(7736002)(486006)(6116002)(3846002)(476003)(6436002)(256004)(4326008)(229853002)(446003)(9686003)(44832011)(55016002)(64756008)(66476007)(66946007)(81156014)(81166006)(8936002)(76116006)(316002)(478600001)(26005)(99286004)(186003)(2501003)(14454004)(86362001)(6506007)(66066001)(25786009)(102836004)(7696005)(76176011)(71190400001)(33656002)(110136005)(71200400001)(5660300002)(52536014); DIR:OUT; SFP:1101; SCL:1; SRVR:VE1PR04MB6720; H:VE1PR04MB6639.eurprd04.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; received-spf: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: xCYU2bQlpvo3Ufx8Q9esLbFtyN8Ekbc8snEGQb/344vMHsQXPq5hu31l3547sTtHpxIEJWBihfAJYbr6HyCb8l0e+u7vvaFhIqL6BcobMbbXitji3DmBUVV4ik+LbDxZEbm3yia8CSKDPYufFa8Bxuum55riS8/vF5ATGH57rVO10hg5jwH3+RExgYGPqrHM3RihhJLitl6vrNMfHtJS9jCvcG6k02N5uMt+36bmHeYBqp/6XoYr+UitY6rEY8adAPFt0M+uDXEfFVpocwSMwq4exa4Fwkq40abtBVJyiIxb4wCPO6CYFn23IgP4V3Z/iPJbqWyGxbQLvSrMMk0vc2xAwv87jZJqCJIXIlpZstgvnVG67xN6JDFi9qmsMmCnOv9IX0EjsN16aviyTIY3y3cOwvwZU5J0uCAYYvffvl0= x-ms-exchange-transport-forked: True Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 80a889e4-de0d-4be2-463f-08d7515fb153 X-MS-Exchange-CrossTenant-originalarrivaltime: 15 Oct 2019 11:06:13.3283 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: nrumHRAuumSunWT9Wl87RYq8p2Ril0aqHpWo7qsE3RRsvHaoHGcjHNKmxKB7/kDOGwAAaJNOkGCdA6amBBXD8Q== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VE1PR04MB6720 Subject: Re: [dpdk-dev] [PATCH v1 4/6] crypto/ccp: updating ccp crypto capabilities ops 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" Title: crypto/ccp: fix capabilities for digest size >=20 > From: Amaranath Somalapuram >=20 > crypto capabilities ops for ccp initilzed incorrectly. > changing the correct values for the capabilities ops You are changing digest size only in this patch. You can rephrase this as: CCP can support varied digest sizes ranging from 1 to some max value But the current code support only fixed max values. This patch updates the minimum digest sizes to 1. Also a Fixes line is missing > Cc: stable@dpdk.org >=20 > Signed-off-by: Amaranath Somalapuram > --- > drivers/crypto/ccp/ccp_pmd_ops.c | 44 ++++++++++++++++---------------- > 1 file changed, 22 insertions(+), 22 deletions(-) >=20 > diff --git a/drivers/crypto/ccp/ccp_pmd_ops.c > b/drivers/crypto/ccp/ccp_pmd_ops.c > index d5041f0ec..768378033 100644 > --- a/drivers/crypto/ccp/ccp_pmd_ops.c > +++ b/drivers/crypto/ccp/ccp_pmd_ops.c > @@ -47,7 +47,7 @@ > .increment =3D 1 \ > }, \ > .digest_size =3D { \ > - .min =3D 20, \ > + .min =3D 1, \ > .max =3D 20, \ > .increment =3D 0 \ > }, \ > @@ -68,9 +68,9 @@ > .increment =3D 0 \ > }, \ > .digest_size =3D { \ > - .min =3D 28, \ > + .min =3D 1, \ > .max =3D 28, \ > - .increment =3D 0 \ > + .increment =3D 1 \ > }, \ > .aad_size =3D { 0 } \ > }, } \ > @@ -89,9 +89,9 @@ > .increment =3D 1 \ > }, \ > .digest_size =3D { \ > - .min =3D 28, \ > + .min =3D 1, \ > .max =3D 28, \ > - .increment =3D 0 \ > + .increment =3D 1 \ > }, \ > .aad_size =3D { 0 } \ > }, } \ > @@ -110,9 +110,9 @@ > .increment =3D 0 \ > }, \ > .digest_size =3D { \ > - .min =3D 28, \ > + .min =3D 1, \ > .max =3D 28, \ > - .increment =3D 0 \ > + .increment =3D 1 \ > }, \ > .aad_size =3D { 0 } \ > }, } \ > @@ -131,9 +131,9 @@ > .increment =3D 1 \ > }, \ > .digest_size =3D { \ > - .min =3D 28, \ > + .min =3D 1, \ > .max =3D 28, \ > - .increment =3D 0 \ > + .increment =3D 1 \ > }, \ > .aad_size =3D { 0 } \ > }, } \ > @@ -173,9 +173,9 @@ > .increment =3D 1 \ > }, \ > .digest_size =3D { \ > - .min =3D 32, \ > + .min =3D 1, \ > .max =3D 32, \ > - .increment =3D 0 \ > + .increment =3D 1 \ > }, \ > .aad_size =3D { 0 } \ > }, } \ > @@ -215,9 +215,9 @@ > .increment =3D 1 \ > }, \ > .digest_size =3D { \ > - .min =3D 32, \ > + .min =3D 1, \ > .max =3D 32, \ > - .increment =3D 0 \ > + .increment =3D 1 \ > }, \ > .aad_size =3D { 0 } \ > }, } \ > @@ -257,9 +257,9 @@ > .increment =3D 1 \ > }, \ > .digest_size =3D { \ > - .min =3D 48, \ > + .min =3D 1, \ > .max =3D 48, \ > - .increment =3D 0 \ > + .increment =3D 1 \ > }, \ > .aad_size =3D { 0 } \ > }, } \ > @@ -299,9 +299,9 @@ > .increment =3D 1 \ > }, \ > .digest_size =3D { \ > - .min =3D 48, \ > + .min =3D 1, \ > .max =3D 48, \ > - .increment =3D 0 \ > + .increment =3D 1 \ > }, \ > .aad_size =3D { 0 } \ > }, } \ > @@ -341,9 +341,9 @@ > .increment =3D 1 \ > }, \ > .digest_size =3D { \ > - .min =3D 64, \ > + .min =3D 1, \ > .max =3D 64, \ > - .increment =3D 0 \ > + .increment =3D 1 \ > }, \ > .aad_size =3D { 0 } \ > }, } \ > @@ -383,9 +383,9 @@ > .increment =3D 1 \ > }, \ > .digest_size =3D { \ > - .min =3D 64, \ > + .min =3D 1, \ > .max =3D 64, \ > - .increment =3D 0 \ > + .increment =3D 1 \ > }, \ > .aad_size =3D { 0 } \ > }, } \ > @@ -536,7 +536,7 @@ > .increment =3D 1 \ > }, \ > .digest_size =3D { \ > - .min =3D 16, \ > + .min =3D 1, \ > .max =3D 16, \ > .increment =3D 0 \ > }, \ > -- > 2.17.1