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 07AF1A0C49; Wed, 16 Jun 2021 22:14:45 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id B3D7D40683; Wed, 16 Jun 2021 22:14:44 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com [67.231.148.174]) by mails.dpdk.org (Postfix) with ESMTP id CE4274067A for ; Wed, 16 Jun 2021 22:14:43 +0200 (CEST) Received: from pps.filterd (m0045849.ppops.net [127.0.0.1]) by mx0a-0016f401.pphosted.com (8.16.0.43/8.16.0.43) with SMTP id 15GKANIZ030341; Wed, 16 Jun 2021 13:14:41 -0700 Received: from nam10-bn7-obe.outbound.protection.outlook.com (mail-bn7nam10lp2105.outbound.protection.outlook.com [104.47.70.105]) by mx0a-0016f401.pphosted.com with ESMTP id 397auvkmy7-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 16 Jun 2021 13:14:41 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=it5TvhvWf3KqBrsxuIe7yvidTlyE6nwjNGlSGKbO4NSKCnFHrCLgNSE7m5F5DQK9zC5aoFnGIF97TnHd75GNI8VDlp23EFt1OY7pTwfgLG6zwnyzpyL98yh3d2rwW8rD6NKwHLW83uBlX63ZFCzNUDSFIzhog7maAm5Ocv/xYibQcAFwLbe5cxefRhW41iszlMrmsQ9c2b85lvcfp9Jv2wHzjOlnoZyyjFb9Ka6IriOcPS9TJPo/LWMDgsLHwJhKzxt+pcoeYlW4t/S4fSl7fMBk8UPr1O6t3hjgb9yTv6+vQjx56gaZWBN56oXmP7ZB2rHxKSOFIZKgkLi+qzCbtw== 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=ONAzAbzm/yhPxikTvpRfcKxNdnRl+wwxMttJt4NlhjM=; b=aDcsnsvteqtnn5cgVHprx2XAXkRYIezyzhffkwGAhOry1KtMPmgPWLBQaq7xmUe2X6LTaEv0n7N2k0xI7h0yNFs/CwhE+ttQrTh+oueULk7mvYc1MubAiP6wuvuZcxoA7VLrB/hZRwJypm8bQLXcMjjCVb273nardnEVQgk6iDZo9VAKftBNHzLvg+bD549f54JtCjlq3/txu2H36LNZnQVUBtYD426C4pT/XWzto9cIrDM22DPbX/euHsI/X1rdQb8yEPY1CWaJo3OzARIed2VPsqWT8GJmHCF7nN9kdXOUbkFJcVnvIi1ikAOdBUmquU2ooIls+QBR6z2j524t+g== 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=ONAzAbzm/yhPxikTvpRfcKxNdnRl+wwxMttJt4NlhjM=; b=RQn2xSzKSF7au2vVRrPJLT3kp6MpVMK2jH+NqFibXiOUTbqOlDpyoupDQLzhry4bznUgncMr4X1EacXXyyUD7H3reATeD/cJKPeJv6ZGBkyojoIISCEyXkiBXEF+3xFBvN1O9XooxfFejsKt4e1t+f9+kkxFs7AcImoO7wenpVw= Received: from CO6PR18MB4484.namprd18.prod.outlook.com (2603:10b6:5:359::9) by CO1PR18MB4617.namprd18.prod.outlook.com (2603:10b6:303:e0::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4219.22; Wed, 16 Jun 2021 20:14:39 +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 20:14:39 +0000 From: Akhil Goyal To: Anoob Joseph , Thomas Monjalon CC: Srujana Challa , Jerin Jacob Kollanukkaran , Ankur Dwivedi , Tejasree Kondoj , "dev@dpdk.org" , Anoob Joseph Thread-Topic: [PATCH 1/4] crypto/cnxk: add security ctx skeleton Thread-Index: AQHXV9Jfn9AA6//o6U2te7+ifHHq76sXKCdg Date: Wed, 16 Jun 2021 20:14:39 +0000 Message-ID: References: <1622653862-22830-1-git-send-email-anoobj@marvell.com> <1622653862-22830-2-git-send-email-anoobj@marvell.com> In-Reply-To: <1622653862-22830-2-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: 496f19ce-6d60-493a-5a94-08d931035f0a x-ms-traffictypediagnostic: CO1PR18MB4617: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:2582; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: VqzA2RV4N1dDINvXXOIKMEeDmj1kmn75uwb4In+f05lMtRTl31Aj5aLa76CINQjN4WvmLkoPlvQrT3u05W85OoqKe94BhzfwQtG1sG/pFHbpH1GPxx3oOEMlfASuo82Oa9mofy1zvVq1Jw2jzgsZDkuJZbr889ggO1KTni3EdPczFKKc3bkdMxlgPGM8WR1lSv5dibEkU9aOCx7oTWTcUU3w+vDxDFDTjJjwLylbcdNsSiHsowaAAHuM8AfKI7IJu+lxswSqRLHI7z5NZPT53cf7+Nvsfiq4FMI07FOhzl6lWr0LUqOZYT5HwFhCz1rrxWxW0eISUo+NmvIWaoyuNqs4AMDC0h1t2Zx0IUFoxbu2WmefiuQ+DeLTvQLcWNEtswNknPhnowwonRMkJ5VsZVh0X9mJ339b48bmhDeN6i/LihqOoJGxMMfrKjFYP+LEJ6TK6QuTWyZAhVHspFxsef90EVfbYH8Tp2bCYi9Bt/kFHjL+Pt4oYp/rMxZAB5oZ/CIcOX2DaJJEJVex65MG8eWNwhprc+AurwEIoRnrxQrjikHxo8cAFOprwAyjglINm/N72MhXLQhre+4tPm5JPkf+OTZb6PBhrEnp/daVYZc= 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)(136003)(39860400002)(366004)(346002)(376002)(186003)(316002)(71200400001)(5660300002)(66476007)(15650500001)(66556008)(64756008)(66446008)(52536014)(2906002)(86362001)(8936002)(55016002)(26005)(110136005)(66946007)(54906003)(9686003)(76116006)(107886003)(8676002)(6506007)(7696005)(38100700002)(478600001)(122000001)(4326008)(33656002)(83380400001); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?+x2O7eJttHvV2O+xn2VhhfYTVKWAaW+fMFr/Aoo0OnCVcN4cFR5Cqvx3ssF8?= =?us-ascii?Q?4uDgNFIii1626mD99FnPqJepPecrsMib8EM6HLyTQU3SRQN7qtV4laE+HPJP?= =?us-ascii?Q?fqrLMMNn+gU1o6nXFuuVzH7ru95DlG4Ll8lXPnECc9GWDXisw1BhzaU4BaTV?= =?us-ascii?Q?fINh9lPkyp/H76xyDP26NIhUrX5nZY5zys8f+dxhIA9wsTm5HTBPWqG9iqst?= =?us-ascii?Q?PY4uz5RKOAsGIF+lF0eJ1gqKcT61YlSVA1yiw1yWSzInJWJVOEOmwcQC4+TK?= =?us-ascii?Q?/iLWK+Im+d4siLODmgAIQYGbktf2HBRr+DHfwJhWXreGgzVoCh2b9nWT9Y5n?= =?us-ascii?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x6gHtB?= =?us-ascii?Q?Fxy8T1daeRFyQYkWWFunZ77HSTo59MQSBOu6dafzVOwKZ3k7bhRQ4cTx5jqc?= =?us-ascii?Q?5kZy6DQ+7tE+PeP8H/YJUvqY?= 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: 496f19ce-6d60-493a-5a94-08d931035f0a X-MS-Exchange-CrossTenant-originalarrivaltime: 16 Jun 2021 20:14:39.6283 (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: JomgboYG3pRihK5voe1kjYKdck2Euo1ehJNmGO3yP4DfFsFwdbR6JmtNq2gjR/1HC3q1ckuzgfv6o2lyZbrh8g== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CO1PR18MB4617 X-Proofpoint-ORIG-GUID: suE0U4VVDilxkbCd0sDMPcuMA59TD_y2 X-Proofpoint-GUID: suE0U4VVDilxkbCd0sDMPcuMA59TD_y2 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.391, 18.0.790 definitions=2021-06-16_13:2021-06-15, 2021-06-16 signatures=0 Subject: Re: [dpdk-dev] [PATCH 1/4] crypto/cnxk: add security ctx skeleton 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" > From: Srujana Challa >=20 > Add security ctx in cn10k crypto PMD. >=20 > Signed-off-by: Anoob Joseph > Signed-off-by: Srujana Challa > Signed-off-by: Tejasree Kondoj > --- > drivers/crypto/cnxk/cn10k_cryptodev.c | 10 +++++++ > drivers/crypto/cnxk/cnxk_cryptodev_sec.c | 47 > ++++++++++++++++++++++++++++++++ > drivers/crypto/cnxk/cnxk_cryptodev_sec.h | 14 ++++++++++ > drivers/crypto/cnxk/meson.build | 3 +- > 4 files changed, 73 insertions(+), 1 deletion(-) > create mode 100644 drivers/crypto/cnxk/cnxk_cryptodev_sec.c > create mode 100644 drivers/crypto/cnxk/cnxk_cryptodev_sec.h >=20 > diff --git a/drivers/crypto/cnxk/cn10k_cryptodev.c > b/drivers/crypto/cnxk/cn10k_cryptodev.c > index ca3adea..b58d390 100644 > --- a/drivers/crypto/cnxk/cn10k_cryptodev.c > +++ b/drivers/crypto/cnxk/cn10k_cryptodev.c > @@ -14,6 +14,7 @@ > #include "cn10k_cryptodev_ops.h" > #include "cnxk_cryptodev.h" > #include "cnxk_cryptodev_capabilities.h" > +#include "cnxk_cryptodev_sec.h" >=20 > #include "roc_api.h" >=20 > @@ -75,6 +76,11 @@ cn10k_cpt_pci_probe(struct rte_pci_driver *pci_drv > __rte_unused, > plt_err("Failed to add engine group rc=3D%d", rc); > goto dev_fini; > } > + > + /* Create security context */ > + rc =3D cnxk_crypto_sec_ctx_create(dev); > + if (rc) > + goto dev_fini; > } >=20 > cnxk_cpt_caps_populate(vf); > @@ -87,6 +93,7 @@ cn10k_cpt_pci_probe(struct rte_pci_driver *pci_drv > __rte_unused, > RTE_CRYPTODEV_FF_OOP_SGL_IN_LB_OUT | > RTE_CRYPTODEV_FF_OOP_SGL_IN_SGL_OUT | > RTE_CRYPTODEV_FF_SYM_SESSIONLESS | > + RTE_CRYPTODEV_FF_SECURITY | > RTE_CRYPTODEV_FF_DIGEST_ENCRYPTED; Corresponding change in .ini file missing. Moreover, you should add it in Last patch of this series when your feature is complete. Both feature flag and documentation in .ini should be in same patch.