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 2809AA04BC; Thu, 8 Oct 2020 07:54:44 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 4CC4F1B709; Thu, 8 Oct 2020 07:54:42 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com [67.231.148.174]) by dpdk.org (Postfix) with ESMTP id E6E591B708 for ; Thu, 8 Oct 2020 07:54:39 +0200 (CEST) Received: from pps.filterd (m0045849.ppops.net [127.0.0.1]) by mx0a-0016f401.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 0985kqaZ029645; Wed, 7 Oct 2020 22:54:37 -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=6oJ87kN/fYxPzghkRgJHusUh7YuyLkN+J+ongkXoYYw=; b=eNXnCFwVZtskA+5qzkS+F9XCWaGtAa4Hj9fnEEtGHHnfoAO+P97OskqD9ZA3Q+t7njTS NpbkmqbrJ7QBzPBhNlLAkw85Kxlx5D88Wqsb94U6fJpaENmWrhKUS+TkNqz7hmfrcF1t cuaLrrTMgctRf89oxVq2i+JC7ssqFpl4suS37+jsuVJmWqYlmK2lTld7idw9J4hiZNTA c5fX0pe0Z8ALQBTmnYJbPQIeGj1vrxORWUtWE5wqmtkBwak/V5IUhhUjT7djpGdkJjzx KRNaaO1coQTcyhI0huPL/zh9R0Pl1yFcgbzJWGIafGjeoN/N5UT4Hoo1v7InGN3m/88+ HQ== Received: from sc-exch01.marvell.com ([199.233.58.181]) by mx0a-0016f401.pphosted.com with ESMTP id 33xpnpyp5d-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Wed, 07 Oct 2020 22:54:37 -0700 Received: from DC5-EXCH02.marvell.com (10.69.176.39) by SC-EXCH01.marvell.com (10.93.176.81) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Wed, 7 Oct 2020 22:54:36 -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; Wed, 7 Oct 2020 22:54:37 -0700 Received: from hyd1349.t110.caveonetworks.com (unknown [10.29.45.13]) by maili.marvell.com (Postfix) with ESMTP id BF7A93F703F; Wed, 7 Oct 2020 22:54:34 -0700 (PDT) From: Ankur Dwivedi To: CC: , , , , Ankur Dwivedi Date: Thu, 8 Oct 2020 11:24:20 +0530 Message-ID: <20201008055423.32259-1-adwivedi@marvell.com> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20200917051638.1904-1-adwivedi@marvell.com> References: <20200917051638.1904-1-adwivedi@marvell.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.235, 18.0.687 definitions=2020-10-08_03:2020-10-08, 2020-10-08 signatures=0 Subject: [dpdk-dev] [PATCH v3 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" 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. 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