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 630B4A04BC; Thu, 8 Oct 2020 17:05:09 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 3CA2D1C1A2; Thu, 8 Oct 2020 17:05:08 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) by dpdk.org (Postfix) with ESMTP id 9AC041C195 for ; Thu, 8 Oct 2020 17:05:06 +0200 (CEST) Received: from pps.filterd (m0045851.ppops.net [127.0.0.1]) by mx0b-0016f401.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 098F4ZPG005382; Thu, 8 Oct 2020 08:05:05 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h=from : to : cc : subject : date : message-id : references : in-reply-to : content-type : content-transfer-encoding : mime-version; s=pfpt0220; bh=80ek7tutgLzh2nEi0hTWWQ147Q6+wqxegj+LP9YnBsQ=; b=ZA6IKHkQ83sEDwwZx1LJJLsZU5opB9QLC8tBWXwRc9DxI6eyN2HyKMX16CoqTA9+gz7p /v4L1sXZcHPd5+/nJzan4dOL8teLaT/ZP/yF9Qq9o4BlFgcSDYI/1F9E6+2tJV4jSpVK lM/vbrNBHRoNDzzw9hT/BU/fWJFsSvBjlhzSqDuCwg3r41IWp3x/AKa0NQPfc0fXEwqX dubbb/xaBd7aPJDD9KAHjX3YaCXRtS5oWsT2PwXX9YC6fvIm+x5IBTvNbxzD72dChxoe qarkHno3oFqfj2x+SuW6a2qFd126hg1PtxfGEyfaH2AhvBpQW6jTDjowxSs7/pNYBLoy 4Q== Received: from sc-exch02.marvell.com ([199.233.58.182]) by mx0b-0016f401.pphosted.com with ESMTP id 33xrtnrcdx-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Thu, 08 Oct 2020 08:05:04 -0700 Received: from SC-EXCH01.marvell.com (10.93.176.81) by SC-EXCH02.marvell.com (10.93.176.82) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Thu, 8 Oct 2020 08:05:02 -0700 Received: from NAM10-DM6-obe.outbound.protection.outlook.com (104.47.58.108) by SC-EXCH01.marvell.com (10.93.176.81) with Microsoft SMTP Server (TLS) id 15.0.1497.2 via Frontend Transport; Thu, 8 Oct 2020 08:05:02 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=X30L/ZvZFaLFXpOdGpXtcnGpqTOrWzGdCvpwYs5JgAT6A3E+CzO5Xr4kw7XSyS+d9vTKYr83m98r4TrRh/c0ACoH6pGefLzEQ+60F08Av1msKG3bs9cwosTyEPdb+U8VRhMt1PaxzJ8RNAI2sRbERFLMiyVsIN6aP/9fzlKeLpptRqk7WjYAhPuDpBSTEoB1O9yZFsm3HzAsvfRKChtoxuoID8WWoqv0/cZXNLVsPkrDXA8ZnEJ+uMqfALrmyHy7usejbWBL3+I4IcgRFNmaVjhtVyJvVG7G71rGYcIzn9dzy588N2RJ2F3ED4AVmiLEDF3h+j5kZwpvlWqiPmRq1g== 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=80ek7tutgLzh2nEi0hTWWQ147Q6+wqxegj+LP9YnBsQ=; b=TsR4HQzF2+7iM/MwB75vTgbp7iSidvZ6D5ZppE8onV1XwTH6FumSB9151yMXjtjySjZyfRDJHwmMcer/NYhHkl5Yo/wYBvkCJc23IPR7rxb4Wp/069bSYOTNkE7bS8Xvp31Hbr76a73aUjQFYeNPzgwk2qJBqe2MBqXnb4T8f86JNqkNXE8u4tWbUEXPrm9d/WjG4mJ/+xaemr42M71yNG4WN873mtWpMnjvZ+U+plOkmjFQH4P4vVftkWCoAyCL9nyyhyLailWeG9UavqyhsEN+iNTgIeV/sncBCR1TEgzUceMYQxQXVnHyCOTRCcQpahkKKZyCjsKPyRolvDqw5Q== 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=80ek7tutgLzh2nEi0hTWWQ147Q6+wqxegj+LP9YnBsQ=; b=blN7gsKWbQHriUTM1uyUIUUW1xk35//dPfBr4zE7c0l9WuALWGDnskrcXR2FmbHuAdm/1LPX3NoPo+F2sOqqu4d20ixeGkshe7n9FyPHy/+bC4wel+dW00e5Wth6T50X6s4eciR4Qzxq+obCj5SuEjP2vNyhLyWGDIQ75aN6028= Received: from CY4PR18MB1142.namprd18.prod.outlook.com (2603:10b6:903:a7::12) by CY4PR18MB1303.namprd18.prod.outlook.com (2603:10b6:903:113::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3455.23; Thu, 8 Oct 2020 15:05:00 +0000 Received: from CY4PR18MB1142.namprd18.prod.outlook.com ([fe80::9853:e0c6:7e7d:7c8]) by CY4PR18MB1142.namprd18.prod.outlook.com ([fe80::9853:e0c6:7e7d:7c8%10]) with mapi id 15.20.3455.024; Thu, 8 Oct 2020 15:05:00 +0000 From: Pavan Nikhilesh Bhagavatula To: Ankur Dwivedi , "dev@dpdk.org" CC: Jerin Jacob Kollanukkaran , "akhil.goyal@nxp.com" , Anoob Joseph , Ankur Dwivedi Thread-Topic: [PATCH v4 0/3] event/octeontx2: add support for event crypto adapter Thread-Index: AQHWnV6uImRlIBJOTEK4X0yv3aK+zamNzaGg Date: Thu, 8 Oct 2020 15:05:00 +0000 Message-ID: References: <20201008055423.32259-1-adwivedi@marvell.com> <20201008103435.19187-1-adwivedi@marvell.com> In-Reply-To: <20201008103435.19187-1-adwivedi@marvell.com> Accept-Language: en-IN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [49.37.198.174] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: ca6fcbb6-8e02-4431-6653-08d86b9b875f x-ms-traffictypediagnostic: CY4PR18MB1303: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:8882; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: 6Ph421KXSDMBM06HKU/svFQvdyFwOZ5QI5meliZ2wvtekgLNXMfCB+H0hIHG4oJ0NWM6aPVKYaOTBYtZpgmcEvva+fqGK/eVvTc+7fc0ImkDuMSrgA4AJfz4tyyNGH8wjMZptBsY6z1CnCQmuS2tsR7qZ6smNGAQP5kmYtSBS+2wtDb5AmUfBAwMPK4at6IqAjZXBGBA2Z1VlLCIEKky07lAv7lWNh8c7A0/HWj/cuLQOm9c3uvD001WPfEcOsRbY8BJJx2hyzgUANNga5Iabc4Ez9pvbztVDMk0LWGQyRfwJ+bAg6NI2Gb7vgtEP/Rj x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:CY4PR18MB1142.namprd18.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(366004)(396003)(136003)(39860400002)(346002)(376002)(107886003)(26005)(83380400001)(7696005)(316002)(110136005)(4326008)(54906003)(5660300002)(6506007)(478600001)(66446008)(64756008)(66556008)(66476007)(66946007)(76116006)(86362001)(71200400001)(52536014)(2906002)(9686003)(186003)(8936002)(33656002)(55016002)(8676002); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata: FyPK/xIrSyI1qYnweLuO/yGBOlYQrhCpdM85/a1c8TeMvWSydAQCuVMUgWPu5lvVIvpp/9pQ9zrSZXwShQfxEjXU7+Ubwip7nyP2gcqxPbVKZqKXOSK6lBOPIYCV7QMOGa3IJnjjOhg2JNBVdDD/l5xMnys63f9qouq+QxuiJiU6QX4vB9FhFc5g+f5Vg0Ed9ujMdK2cBpFn3O3wlAMk/Cj2m1r09ihXmTpmx68X/K++cn6hwa5p26oX5O4g3T9B1g9EIfEXLsfUncrL8Y2Bs7QEt6zNdl1Vk+E2NVnnBSGVEAU2Pq6HJscXM2dHgalmSPt+5IAJmhiiQ/zHl2W8YdMF4C/RgfgoA3ZQugAjdZzLCV8H4TmDF57HOApR2ZfYhZ8at1ZZ7gpu2uuODvzJpguQxczpV9gBg/2x1/TtyV8ZPS9BDF5M1RyuTInEJKbHmTY3Y18KOhhYDCX66zJcclwzeVnX6rnZZ8WZ707eIpgH9cjVBDj1FQ8XegG5iy9gFwNQ8fUJbmle8YYdI70Jc+kGG/vSDYkCWbIRoOQGXERDHyGX0uVrIiZZr+lpN/jE7LnCLQ77SE+FFbr6yrHO/qkIxZtBuM4vjb7ZoouxEKYcTu6QNUVNgEBscSBSDTguWeSxXu3PWW3aXbobow6vnw== Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: CY4PR18MB1142.namprd18.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: ca6fcbb6-8e02-4431-6653-08d86b9b875f X-MS-Exchange-CrossTenant-originalarrivaltime: 08 Oct 2020 15:05:00.5685 (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: faLwx5izQhk9VGNTfndarA+w5w9n/1TMkn6RQzs10g4d0evddcefUe6+C6MVWQaPWuHcQUxujGj2PG+3bJneFFD+Vkwz9M8CnOpCSOWi7RE= X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY4PR18MB1303 X-OriginatorOrg: marvell.com X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.235, 18.0.687 definitions=2020-10-08_08:2020-10-08, 2020-10-08 signatures=0 Subject: Re: [dpdk-dev] [PATCH v4 0/3] event/octeontx2: add support for event crypto adapter 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" Series-Acked-by: Pavan Nikhilesh >This patch series adds support for event crypto adapter in op new >mode in the OCTEON TX2 event PMD. The functionality has been >verified with event crypto adapter test application. Build with >meson and ninja is supported. > >v4: >* In the "event/octeontx2: add crypto adapter datapath" patch, > replaced rte_cio_wmb with rte_io_wmb, to resolve compilation > error. > >v3: >* In the "event/octeontx2: add crypto adapter framework" patch, > the following changes were made: > - Moved the crypto adapter files from crypto/octeontx2 to > event/octeontx2 directory. > - Reused the security flag for crypto adapter implementation. > >* In the "event/octeontx2: add crypto adapter datapath" patch, > the following changes were made: > - In otx2_ssogws_get_work() and otx2_ssogws_dual_get_work(), > the crypto adapter function is called if offload flag has > security enabled. This is an additional check apart from > checking event type. > >v2: >* In the "event/octeontx2: add crypto adapter datapath" patch, right > shifting the req pointer by 3 bits before submit during enqueue. > Because of this the right shift during dequeue is not required. > >Ankur Dwivedi (3): > crypto/octeontx2: move functions to helper file > event/octeontx2: add crypto adapter framework > event/octeontx2: add crypto adapter datapath > > drivers/common/cpt/cpt_common.h | 1 + > drivers/crypto/octeontx2/meson.build | 1 + > .../octeontx2/otx2_cryptodev_hw_access.h | 12 +++ > .../crypto/octeontx2/otx2_cryptodev_mbox.h | 2 + > drivers/crypto/octeontx2/otx2_cryptodev_ops.c | 96 ++++++++--------- >-- > .../octeontx2/otx2_cryptodev_ops_helper.h | 74 ++++++++++++++ > drivers/crypto/octeontx2/otx2_cryptodev_qp.h | 7 ++ > .../rte_pmd_octeontx2_crypto_version.map | 10 ++ > drivers/event/octeontx2/meson.build | 4 +- > drivers/event/octeontx2/otx2_evdev.c | 4 + > drivers/event/octeontx2/otx2_evdev.h | 11 +++ > .../event/octeontx2/otx2_evdev_crypto_adptr.c | 81 >++++++++++++++++ > .../octeontx2/otx2_evdev_crypto_adptr_dp.h | 75 +++++++++++++++ > drivers/event/octeontx2/otx2_worker.h | 28 ++++-- > drivers/event/octeontx2/otx2_worker_dual.h | 44 +++++---- > 15 files changed, 365 insertions(+), 85 deletions(-) > create mode 100644 >drivers/crypto/octeontx2/otx2_cryptodev_ops_helper.h > create mode 100644 >drivers/event/octeontx2/otx2_evdev_crypto_adptr.c > create mode 100644 >drivers/event/octeontx2/otx2_evdev_crypto_adptr_dp.h > >-- >2.28.0