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 0D0AFA04C0; Mon, 28 Sep 2020 22:00:30 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 73EDE1D66E; Mon, 28 Sep 2020 22:00:27 +0200 (CEST) Received: from EUR01-DB5-obe.outbound.protection.outlook.com (mail-eopbgr150054.outbound.protection.outlook.com [40.107.15.54]) by dpdk.org (Postfix) with ESMTP id 4076F1BFD1 for ; Mon, 28 Sep 2020 22:00:24 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=X7wE3dOjjlzw354y48lOpAdmfIbdq87HLxo8BKpGZ5OSVQZMplShU52VuEQCMOyrMyPdTcLjnVOtBagAbuMICFktFMQXIpb+d2dUHtkYhrOJihVtP+o2qPKrrRxK/j0SpT2nS3XcYPIZWh9p3sLD81jGGUhXCA0Vgy7YpSlXBm68L+DUjJzP7Q5oFOSbWCACU6Vqqp23hF4CgMaiyPS2mr98uZLFA77lx2L5Lr2rkpy11hTzeOD38JDrFSaXewf8C/ejQKMYu4ERjdAZepQuP9Y25i+uJ1VxUOyW56WjP9WLPiAMhZ+Rhkti1avu6kc94ovLXwemjWJ56p/qosQmYA== 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=wfID/Axlt5VTx1n/up0kJDp4+YGxc5upXVazGECFRO8=; b=nAOYWYRRtYBX/qFBTJMDE1jXOGOo1R51a7oaSJcWX174djqz2TUuNEZYDqRfOAwU5SItLagn+0pGjeYqRkoJnxJYAEmX9eCCMRGmQdBBMAl+0bqeOyrl8AGpmGFAQI+pQ18pnt4Qslik6BG1/tz3k5USjPbBNQMVL6TpCh/aQFQYSO7rXfCsVROcb8sLYGVIIkem1S5cIoR7ZZwpqqapUwdfTyQe49Uz/nKVyCrmICbAOv85l67pvScmTTqKQN/QsUMhjp7NOavF+yMqHL6+/TBxgMw5371q5fIQvKZpRo8mDB2NVXhkBIpb9yKIknve5sRV72gq3lr1CXggUgEp1A== 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=wfID/Axlt5VTx1n/up0kJDp4+YGxc5upXVazGECFRO8=; b=b/9almtGOEGqZWuVbt6OolyXwuEfSvb2b0n+1fF4DEqCIENS4vuHD6s6Pt10AWul00G/X5eJljUPoMZvEMfCttvx9/E/pRITe3tze0xhenJyHozPugzjDltE5dW/8oVY7juYL5BlPbpdK0QueLp3NkYOHpQOuD21c4EZZ+auakc= Received: from VI1PR04MB3168.eurprd04.prod.outlook.com (2603:10a6:802:6::10) by VI1PR0402MB3373.eurprd04.prod.outlook.com (2603:10a6:803:a::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3412.25; Mon, 28 Sep 2020 20:00:20 +0000 Received: from VI1PR04MB3168.eurprd04.prod.outlook.com ([fe80::9513:3b55:931f:216e]) by VI1PR04MB3168.eurprd04.prod.outlook.com ([fe80::9513:3b55:931f:216e%4]) with mapi id 15.20.3412.029; Mon, 28 Sep 2020 20:00:20 +0000 From: Akhil Goyal To: Vikas Gupta , "dev@dpdk.org" CC: "vikram.prakash@broadcom.com" , Raveendra Padasalagi Thread-Topic: [PATCH v2 7/8] crypto/bcmfs: add crypto h/w module Thread-Index: AQHWcZaXFK03F2Ngw0iOCrY8qQRmHql+wEzw Date: Mon, 28 Sep 2020 20:00:20 +0000 Message-ID: References: <20200812063127.8687-1-vikas.gupta@broadcom.com> <20200813172344.3228-1-vikas.gupta@broadcom.com> <20200813172344.3228-8-vikas.gupta@broadcom.com> In-Reply-To: <20200813172344.3228-8-vikas.gupta@broadcom.com> Accept-Language: en-IN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: broadcom.com; dkim=none (message not signed) header.d=none;broadcom.com; dmarc=none action=none header.from=nxp.com; x-originating-ip: [122.162.67.38] x-ms-publictraffictype: Email x-ms-office365-filtering-ht: Tenant x-ms-office365-filtering-correlation-id: 386df5fb-c751-4d6d-24ce-08d863e920eb x-ms-traffictypediagnostic: VI1PR0402MB3373: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:2399; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: lLf6IfdPGtZ4YQUNfWrcplJ9QkKJ612NmOSs4rjICYXLN49+mddhnivhEoji1qu9wVSr3JRFy0XMdR4YZ4VYD8JRzT/Rh+Rg1LnzZQzQmPyfYS6BfNOOaym5JQqxjyghCxv+tMbEVWgqSd7t5qbEbJRxzKxGIHa59i9kKY688gmPBbDr5Aiapr3UV3LLOHo4fpWXKQK87E5JHlr0aTiLXufE5LaY8Gb2zLbXSi+4glg/0o+P4081gY3mT45FMbDJ3w9AdQoxxPKGOcIRVYHVT2iBVZ/KGoSCjdAPpymYGmAzaEBdwa6r9wxbMbs+EqhWweFzyC7L4mcFpHUZTaHOj7A1UvABia4kWu1YMgbUMpsdqAMqT2n7y9uirx7o66lD x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:VI1PR04MB3168.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(376002)(39860400002)(346002)(396003)(136003)(366004)(6506007)(52536014)(4326008)(9686003)(8676002)(66946007)(76116006)(33656002)(478600001)(44832011)(55016002)(7696005)(71200400001)(316002)(2906002)(186003)(110136005)(54906003)(83380400001)(26005)(5660300002)(8936002)(66446008)(86362001)(64756008)(66556008)(66476007); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata: d24iIzgr5ysUhyk+PH1HQ3L6ejHu5c8QPZo3+sWvBhbo2S9wfpY/TwjpZZ2k72+CuNttlXUuKK04viCXSaTozfRrAtolh4dAyN03eQsxGpu6L33eDgv9oQzaVAgD0teC5mSa0finKbzsdkrpcPvgAJ+7lQN7UoYHEhZj8KL40+lr2I9hr4dxeD9hLmuvv2OzJK7mhzKbP5T3RWgWf/PHs+WkF8VctgRuj3CQxZ7yU/B1M7AtJ661DkpImTj2CGqPGRLGrP8iv8l6oEtPWifA/QZJpfSsuu7WPYJkum9xGQFdZ7pckdGe7Hs4S/U+TxI4WEYn9aArYUhe6MOSHOMmIJKfKbf2fwSD56nsX0JWH5HEKAi3Izf58w9eXczzO3+z6pBwiPnFWViPqL5+VYuUeFlpvfbwFisVlgPu9+0KBUtn3ZbkLMWvzqrXZBDgV7Kph6U3awFTm/57n+L1p0ObQqKHhsT3dWsw0v7XSVTd0CYb/g+r/XtPkP5Luqp70PBCf+zcZh83XP58VXbLJIWmuA4rpQd73fNz+ZlD/yu3oXrOSGIcV64I58l4M6lOsq1+/nXg2DnpSz85gOvtflxpNy4D53PLeoKloQKcs3y+XUYxqEgV1yK2XpH6AoDPk83QMkrhcEB8AbFyIh1ywNlQBQ== 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-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: VI1PR04MB3168.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 386df5fb-c751-4d6d-24ce-08d863e920eb X-MS-Exchange-CrossTenant-originalarrivaltime: 28 Sep 2020 20:00:20.2866 (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: uIKH5nyT9xGyrn4Z8ZfJ3YlbhGQ5Phwp5q6UNbqEB08O7FwJiuWsAP5g+eXtF41TBxpuzVJ4vx/dtarKuSyXrQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR0402MB3373 Subject: Re: [dpdk-dev] [PATCH v2 7/8] crypto/bcmfs: add crypto h/w module 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 Vikas, > Subject: [PATCH v2 7/8] crypto/bcmfs: add crypto h/w module >=20 > Add crypto h/w module to process crypto op. Crypto op is processed via > sym_engine module before submitting the crypto request to h/w queues. >=20 > Signed-off-by: Vikas Gupta > Signed-off-by: Raveendra Padasalagi > Reviewed-by: Ajit Khaparde > --- > drivers/crypto/bcmfs/bcmfs_sym.c | 316 ++++++++ > drivers/crypto/bcmfs/bcmfs_sym_defs.h | 16 + You can probably move the hardware specific defines and enums into hw Directory of your driver. > drivers/crypto/bcmfs/bcmfs_sym_engine.c | 994 ++++++++++++++++++++++++ > drivers/crypto/bcmfs/bcmfs_sym_engine.h | 103 +++ > drivers/crypto/bcmfs/bcmfs_sym_pmd.c | 26 + > drivers/crypto/bcmfs/bcmfs_sym_req.h | 40 + > drivers/crypto/bcmfs/meson.build | 4 +- > 7 files changed, 1498 insertions(+), 1 deletion(-) > create mode 100644 drivers/crypto/bcmfs/bcmfs_sym.c > create mode 100644 drivers/crypto/bcmfs/bcmfs_sym_engine.c > create mode 100644 drivers/crypto/bcmfs/bcmfs_sym_engine.h >=20