From patchwork Fri Apr 12 11:57:19 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Akhil Goyal X-Patchwork-Id: 858 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 8414543E51; Fri, 12 Apr 2024 13:57:40 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 4DC48402A8; Fri, 12 Apr 2024 13:57:40 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com [67.231.148.174]) by mails.dpdk.org (Postfix) with ESMTP id CE951402A2 for ; Fri, 12 Apr 2024 13:57:38 +0200 (CEST) Received: from pps.filterd (m0045849.ppops.net [127.0.0.1]) by mx0a-0016f401.pphosted.com (8.17.1.24/8.17.1.24) with ESMTP id 43C4AExN009079; Fri, 12 Apr 2024 04:57:32 -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=dAgH4reQf36XlzEo4RJEL/7IvzvT1yp98UvuTLe8i5s=; b=STq /QGian6jrejs+gBF5spB5aBhu9OlX8rFClC2GAtWfrDT0yyVUBgijn59SyH5sNRi D3OEcfcbqBSR3SuAR1PCveQjb5To0juJBDxkLWnGpKUu9tiND/R3F4uBpBqrgRO4 XZsXwpvLqjIcNqL45LGHgCDIGbJiXhmmdSc8mUwzu+lDzfIBaKo6ld/ThwnD39XH x9bSWmzpM2YVJwDcLchvgO+03h8ndXZCREdHU+eUo28Qa8etIzSSJZo3wQRZTGto T7kya74huGYYGgGt1Uf1IUi8ZRknMrTMxob9RAsI3/05W1wke8h9FW0u4kjx6YFo pNktNvwOGXMzDc/+Nhg== Received: from dc6wp-exch02.marvell.com ([4.21.29.225]) by mx0a-0016f401.pphosted.com (PPS) with ESMTPS id 3xewph1c5e-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 12 Apr 2024 04:57:32 -0700 (PDT) Received: from DC6WP-EXCH02.marvell.com (10.76.176.209) by DC6WP-EXCH02.marvell.com (10.76.176.209) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.4; Fri, 12 Apr 2024 04:57:31 -0700 Received: from maili.marvell.com (10.69.176.80) by DC6WP-EXCH02.marvell.com (10.76.176.209) with Microsoft SMTP Server id 15.2.1544.4 via Frontend Transport; Fri, 12 Apr 2024 04:57:31 -0700 Received: from localhost.localdomain (unknown [10.28.36.102]) by maili.marvell.com (Postfix) with ESMTP id 8A25C3F7077; Fri, 12 Apr 2024 04:57:25 -0700 (PDT) From: Akhil Goyal To: CC: , , , , , , , , , , , , , , , , , , Akhil Goyal Subject: [PATCH v2 0/3] cryptodev: add API to get used queue pair depth Date: Fri, 12 Apr 2024 17:27:19 +0530 Message-ID: <20240412115722.3709194-1-gakhil@marvell.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240411082232.3495883-1-gakhil@marvell.com> References: <20240411082232.3495883-1-gakhil@marvell.com> MIME-Version: 1.0 X-Proofpoint-GUID: cC9P75aslfWfIkMj9yGQ-CouEhAcPRRe X-Proofpoint-ORIG-GUID: cC9P75aslfWfIkMj9yGQ-CouEhAcPRRe X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.1011,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2024-04-12_08,2024-04-09_01,2023-05-22_02 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 Added a new fast path API to get the number of used crypto device queue pair depth at any given point. An implementation in cnxk crypto driver is also added along with a test case in test app. The addition of new API causes an ABI warning. This is suppressed as the updated struct rte_crypto_fp_ops is an internal structure and not to be used by application directly. v2: fixed shared and clang build issues. Akhil Goyal (3): cryptodev: add API to get used queue pair depth crypto/cnxk: support queue pair depth API test/crypto: add QP depth used count case app/test/test_cryptodev.c | 117 +++++++++++++++++++++++ devtools/libabigail.abignore | 3 + drivers/crypto/cnxk/cn10k_cryptodev.c | 1 + drivers/crypto/cnxk/cn9k_cryptodev.c | 2 + drivers/crypto/cnxk/cnxk_cryptodev_ops.c | 16 ++++ drivers/crypto/cnxk/cnxk_cryptodev_ops.h | 2 + lib/cryptodev/cryptodev_pmd.c | 1 + lib/cryptodev/cryptodev_pmd.h | 2 + lib/cryptodev/cryptodev_trace_points.c | 3 + lib/cryptodev/rte_cryptodev.h | 45 +++++++++ lib/cryptodev/rte_cryptodev_core.h | 7 +- lib/cryptodev/rte_cryptodev_trace_fp.h | 7 ++ lib/cryptodev/version.map | 3 + 13 files changed, 208 insertions(+), 1 deletion(-)