From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 14A98A0C49; Wed, 16 Jun 2021 11:47:31 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 889F04067A; Wed, 16 Jun 2021 11:47:30 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) by mails.dpdk.org (Postfix) with ESMTP id 1A59540140 for ; Wed, 16 Jun 2021 11:47:28 +0200 (CEST) Received: from pps.filterd (m0045851.ppops.net [127.0.0.1]) by mx0b-0016f401.pphosted.com (8.16.0.43/8.16.0.43) with SMTP id 15G9kTWT024473; Wed, 16 Jun 2021 02:47:28 -0700 Received: from nam10-mw2-obe.outbound.protection.outlook.com (mail-mw2nam10lp2107.outbound.protection.outlook.com [104.47.55.107]) by mx0b-0016f401.pphosted.com with ESMTP id 396tagwrhv-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 16 Jun 2021 02:47:28 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=S6UoQ1CQV68mnegZyfLdceMJqGUrw0TTwOASJYsEsszKQJhdK0iuXxusm/62RhZs5MKCZez085Im1jRQ+dZ5lZBKo1VY4qCkaVHYKNX3ERvGC21DxZsUEAvp6qGbsbo3dNqCY1ssmXEmBaA7my15Ov1O2NY1aEGlcTTb8J4NTrHrr4ozcK6PPA0XcJ1ZCvj2spf3SDFd6mTJ/d6mLmi1FVrgRSnerkXdZYKJnhM8SDvNBQcu1nKSN8N6K+Iaf30yq9qMVQazCw6l0llvfsqiOhsGraX2hIjDCXu2LK/Y/kLdQF/KmrKDJtmVLtdicV6sfSesLpRrp1U47GIFp480iw== 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=ByZnvDtMyjwlAHZ9wX0oLcu7FbQhdMeePMOLo/+HRyk=; b=Bomhfj28Tf6Edk6rhd2tD4a2vhKG0JpAMJ232Hopk9mCTlR3qzkQYo6L5aU/Ee7QWvyM5Q6rrtXlNdPRMvYW7iwUdt8JW8tfFAcTww9xCRHmbAACbMxjpxT0TTa4V3uhmEUgL7/39aqEGyBwxzpqokBjPZFudNlivcS4dFY6zj+32EC0vsSVn7kKShrj12IeHzE8M2skO38Ye7qPL/9MF6VRUfdJB/f0XUN38FdmRDlrNxDu13H/vCs8KxMxoENnJZtAaFKDk+L90DiK7ZNryQCg8jD2On68Qr7CPlsFTAuJAdCOIOkLiWwB90Au5gBGLilNjM6N2zKflvqUqZB+NA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=marvell.com; dmarc=pass action=none header.from=marvell.com; dkim=pass header.d=marvell.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.onmicrosoft.com; s=selector1-marvell-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=ByZnvDtMyjwlAHZ9wX0oLcu7FbQhdMeePMOLo/+HRyk=; b=PC5BEMpzIlVna1qH01VlfqHwpSMtl2HqGWbgqXkQcs/kTk7rUpTC6PQfmkdPgLn7Gy7Rb5HxFGHyOjVhiYoJkA9NKGBO/F4aDXXdK2Oa+dk2NNgXt+O/KeMxa/dXpa1nG7nnIzj/+v7Nac4Wmky07Yji7FgMczUaqdjOWsqL5Ls= Received: from CO6PR18MB4484.namprd18.prod.outlook.com (2603:10b6:5:359::9) by CO1PR18MB4618.namprd18.prod.outlook.com (2603:10b6:303:e1::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4219.21; Wed, 16 Jun 2021 09:47:23 +0000 Received: from CO6PR18MB4484.namprd18.prod.outlook.com ([fe80::7d67:6d21:1714:c816]) by CO6PR18MB4484.namprd18.prod.outlook.com ([fe80::7d67:6d21:1714:c816%2]) with mapi id 15.20.4219.026; Wed, 16 Jun 2021 09:47:23 +0000 From: Akhil Goyal To: Anoob Joseph , Thomas Monjalon CC: Ankur Dwivedi , Jerin Jacob Kollanukkaran , Tejasree Kondoj , "dev@dpdk.org" , Anoob Joseph , Archana Muniganti Thread-Topic: [PATCH 04/20] crypto/cnxk: add symmetric crypto capabilities Thread-Index: AQHXV86OYvXBWoKNVkypJ7Bs83UoUKsWc0gg Date: Wed, 16 Jun 2021 09:47:22 +0000 Message-ID: References: <1622652221-22732-1-git-send-email-anoobj@marvell.com> <1622652221-22732-5-git-send-email-anoobj@marvell.com> In-Reply-To: <1622652221-22732-5-git-send-email-anoobj@marvell.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [122.162.4.46] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: e72d0a52-47ee-4450-517e-08d930abbdce x-ms-traffictypediagnostic: CO1PR18MB4618: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:6430; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: Osq62iEkykmmnBKKa0+XrWAdG14IIwPIvKorBie2OhpE3OyFd1VFACIvLt2JIOsx22+rLVVShVDNnrU2OjEtfLb5Fei2mDr54WuxCpfy9mS1S0iikTbV0m94vJqHKsk4fzsvQALhIK0S86tCoRY+Luj2JwfkT2Bo0aTvW0EPU8GVX9ZfzxMYIAGiXMANGLONFDijbWyRwplWDe6noGZHGonqndHBtJIFn9ji+hiUcUzEJOwdWqb+3vkzpsRljtZvqbVHIOwq1JOTgn+s15cHTeNM8Oet1QY26v2XqjRicj8l5WrF4KkWzhAw3G6U8/VvdDMHfSAgZLuCHIzw5bDZltcR1s3oGrvn78NsEmFDnsb3XC31s+bx80esq6V9/OIHIpHGK/PtwMAMBaLQXL29l/cS/8iwEOvSgVpsGUCpvnqIQEuEKfKzWJcJx61BPPbjUkCG4SL4nSRgSm/KS/SqpA9lddiVDIhgNoGhL0uvKaby5KGD7fzu40Ihm2+yDVidx6jm/7GXsBHNzsTaC0x9pSOaIc21P9oB3DNIJY9IYCCiLpcaW0BIamyn0L9sstE30ASZ639SmCFJFlaSdgFHi7PtaBYiWMrkZZgSvsiaO6w= x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:CO6PR18MB4484.namprd18.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(396003)(39860400002)(346002)(366004)(136003)(376002)(76116006)(55016002)(38100700002)(110136005)(6506007)(86362001)(9686003)(4326008)(8936002)(71200400001)(33656002)(54906003)(122000001)(7696005)(26005)(83380400001)(186003)(316002)(66476007)(5660300002)(478600001)(8676002)(107886003)(2906002)(66946007)(52536014)(64756008)(66446008)(66556008); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?IlN79HyEFze9EqEGQMsY7nuaeLa6fq2YrcRUQf/HEYVRsWJrTrXCtqFmYRh9?= =?us-ascii?Q?fRW1qAostKzUkqbXlTEDgIDBPy/OsixZA19/dCeXs5NUXLmL62rd7V1vinet?= =?us-ascii?Q?DyinRIblTb6Ksq6GMngYc1Wd9E708aqiMebvoOY7HPvFj9IIZDHNn68JLOYf?= =?us-ascii?Q?Uez7lyrWJnWqyu8HzlhvxdJguUAOV7WiwDImURF5VjTREJ3erzSklJr7YezQ?= =?us-ascii?Q?mu1Zx5Abfg0/J5z6+kXLxo1Mp+jSWhbrknsD/MDOYvvQvRpJ+u8hnHaFJNBr?= =?us-ascii?Q?u9J9Uv1kHDvWKDtfDwZ+18ekEuAbbb0q7fyqqzTfLwG1hKE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dGk3gcfjhPUHLVu4MR6WLQ+AXp9l52O8/8fw2DM2TOQtta9MBpPTumpaYeJz?= =?us-ascii?Q?57x3AjNBQXtd6hewa5YvHd6M3BuWB44PlreS9lbrTGmDKG5K8FvWw4/e6cQE?= =?us-ascii?Q?HxY=3D?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: marvell.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: CO6PR18MB4484.namprd18.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: e72d0a52-47ee-4450-517e-08d930abbdce X-MS-Exchange-CrossTenant-originalarrivaltime: 16 Jun 2021 09:47:22.9889 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 70e1fb47-1155-421d-87fc-2e58f638b6e0 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: SX3hqusiBM/5YdkTov741brKarB6pulokR5KmZeb9hyReI7wzBiihpK3q4zLW8OcAS3Iol+ZhruysWoRS36ryQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CO1PR18MB4618 X-Proofpoint-ORIG-GUID: XoNGLKKNn5Hv7V_4xelVtzF2twz-0in5 X-Proofpoint-GUID: XoNGLKKNn5Hv7V_4xelVtzF2twz-0in5 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.391, 18.0.761 definitions=2021-06-16_07:2021-06-15, 2021-06-16 signatures=0 Subject: Re: [dpdk-dev] [PATCH 04/20] crypto/cnxk: add symmetric crypto capabilities X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 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" > Subject: [PATCH 04/20] crypto/cnxk: add symmetric crypto capabilities >=20 > From: Ankur Dwivedi >=20 > Add symmetric crypto capabilities for cn9k & cn10k. >=20 Capability patch can also be added in the end along with documentation update in the .ini files after the data path is added. > +++ b/drivers/crypto/cnxk/cnxk_cryptodev_capabilities.c > @@ -0,0 +1,755 @@ > +/* SPDX-License-Identifier: BSD-3-Clause > + * Copyright(C) 2021 Marvell. > + */ > + > +#include > + > +#include "roc_api.h" > + > +#include "cnxk_cryptodev.h" > +#include "cnxk_cryptodev_capabilities.h" > + > +#define CPT_CAPS_ADD(cnxk_caps, cur_pos, hw_caps, name) = \ > + do { = \ > + if ((hw_caps[CPT_ENG_TYPE_SE].name) || \ > + (hw_caps[CPT_ENG_TYPE_IE].name) || \ > + (hw_caps[CPT_ENG_TYPE_AE].name)) \ > + cpt_caps_add(cnxk_caps, cur_pos, caps_##name, > \ > + RTE_DIM(caps_##name)); \ > + } while (0) > + > +static const struct rte_cryptodev_capabilities caps_mul[] =3D { > + { /* RSA */ > + .op =3D RTE_CRYPTO_OP_TYPE_ASYMMETRIC, Patch description says sym capabilities are added, but these are asym.