From patchwork Fri Mar 26 09:12:22 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shijith Thotton X-Patchwork-Id: 89906 Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 478D6A0A02; Fri, 26 Mar 2021 10:13:32 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 2E63140685; Fri, 26 Mar 2021 10:13:32 +0100 (CET) Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) by mails.dpdk.org (Postfix) with ESMTP id AED4F4067B for ; Fri, 26 Mar 2021 10:13:30 +0100 (CET) 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 12Q9AKRL020310; Fri, 26 Mar 2021 02:13:29 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-transfer-encoding : content-type; s=pfpt0220; bh=vValIdACW7eBdSnFCq/LrvTbdm5EAG4HDHN2f89HeEk=; b=FUrxrL7tlPSyw0vsU4Y1R4aZY7P9eWY8f60W8QxAIl1HUHdixDfwtlDLt6nm0dA9ebwn pkeci4JkhoruR//28O8ZL6MoHHaq6q+RkTAjL+TIc66Og2CsT3MbXFw5RaFCiJSk5tvW Go2hAJwSOk5Kv16L7p9IFrg7CBpopYvJa/ihPlZ2sZjUum1TWXfxpEuWuPeP+/eFzf4h Ku0zIgV71FM8dT77hP8bfR9g2KhmK0iIVg/hN5EZuX1ioaYQc9B8Qjx7CUDrWS/TKdiX k20vIE3Qurdx39Y4qSC/+/PEtUJelMpbtUSEtp6YPgZCH2LoXe+ZY4Tfp6SHQOHX+D4y Dw== Received: from dc5-exch02.marvell.com ([199.233.59.182]) by mx0b-0016f401.pphosted.com with ESMTP id 37h11phymc-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Fri, 26 Mar 2021 02:13:29 -0700 Received: from DC5-EXCH02.marvell.com (10.69.176.39) by DC5-EXCH02.marvell.com (10.69.176.39) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Fri, 26 Mar 2021 02:13:27 -0700 Received: from maili.marvell.com (10.69.176.80) by DC5-EXCH02.marvell.com (10.69.176.39) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Fri, 26 Mar 2021 02:13:27 -0700 Received: from localhost.localdomain (unknown [10.28.34.29]) by maili.marvell.com (Postfix) with ESMTP id 1A3663F7041; Fri, 26 Mar 2021 02:13:21 -0700 (PDT) From: Shijith Thotton To: CC: Shijith Thotton , , , , , , , , , , , , , , , Akhil Goyal Date: Fri, 26 Mar 2021 14:42:22 +0530 Message-ID: X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210318181254.418679-1-gakhil@marvell.com> References: <20210318181254.418679-1-gakhil@marvell.com> MIME-Version: 1.0 X-Proofpoint-ORIG-GUID: o6ZI153OFhfu2g5k1Dnuhyz5vnAtd0ci X-Proofpoint-GUID: o6ZI153OFhfu2g5k1Dnuhyz5vnAtd0ci X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.369, 18.0.761 definitions=2021-03-26_02:2021-03-26, 2021-03-26 signatures=0 Subject: [dpdk-dev] [PATCH v1 0/2] Enhancements to crypto adapter forward mode 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" This series proposes a new event device enqueue operation if crypto adapter forward mode is supported. Second patch in the series is the implementation of the same in PMD. Test application changes for the usage of new API is yet to add. v1: - Added crypto adapter forward mode support for octeontx2. Akhil Goyal (1): eventdev: introduce crypto adapter enqueue API Shijith Thotton (1): event/octeontx2: support crypto adapter forward mode .../prog_guide/event_crypto_adapter.rst | 69 ++++++++++------ drivers/crypto/octeontx2/otx2_cryptodev_ops.c | 34 +++++--- drivers/event/octeontx2/otx2_evdev.c | 5 +- .../event/octeontx2/otx2_evdev_crypto_adptr.c | 3 +- ...dptr_dp.h => otx2_evdev_crypto_adptr_rx.h} | 6 +- .../octeontx2/otx2_evdev_crypto_adptr_tx.h | 82 +++++++++++++++++++ drivers/event/octeontx2/otx2_worker.h | 2 +- drivers/event/octeontx2/otx2_worker_dual.h | 2 +- lib/librte_eventdev/eventdev_trace_points.c | 3 + .../rte_event_crypto_adapter.h | 66 +++++++++++++++ lib/librte_eventdev/rte_eventdev.c | 10 +++ lib/librte_eventdev/rte_eventdev.h | 8 +- lib/librte_eventdev/rte_eventdev_trace_fp.h | 10 +++ lib/librte_eventdev/version.map | 3 + 14 files changed, 259 insertions(+), 44 deletions(-) rename drivers/event/octeontx2/{otx2_evdev_crypto_adptr_dp.h => otx2_evdev_crypto_adptr_rx.h} (93%) create mode 100644 drivers/event/octeontx2/otx2_evdev_crypto_adptr_tx.h