From patchwork Thu Apr 11 08:22:29 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Akhil Goyal X-Patchwork-Id: 855 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 54A3143E42; Thu, 11 Apr 2024 10:22:52 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id D78B540268; Thu, 11 Apr 2024 10:22:51 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) by mails.dpdk.org (Postfix) with ESMTP id 9BB9840262 for ; Thu, 11 Apr 2024 10:22:50 +0200 (CEST) Received: from pps.filterd (m0045851.ppops.net [127.0.0.1]) by mx0b-0016f401.pphosted.com (8.17.1.24/8.17.1.24) with ESMTP id 43AIwCcG022591; Thu, 11 Apr 2024 01:22:43 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h= from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding:content-type; s=pfpt0220; bh=HZD5qSdG DMuqYbL9FAfSIR0+nDkIPeR+c6RAhzJYU+s=; b=YoQWL+XkYCy2yAAls1f83dtF KhU7wJxoOfcTWKnuPZlv5xLzv42B9mR8ut2Qvl9LNmgNRXEbrh5bfVtDzzC9DCdW PXFfZyuP3gRAYMUFrArw5TIe2c86JjX37Q+A9AE3sMSP6R2x9iPKWH4Bp9N2lHMu PNXDM8lhhprkheVqDKc1yZihAIO3g8fzQU84Xmtt70wMd/mCuS8dzNFcyopj7Rlk AGRfRPkJTZCQzNm8FB9D5yZs50lNVMleFQZLI60T/ir/5Guu/1EujEKHnyjd9ZWd XRGsVtFkyYPbnTqwa0iA9UclkpAsnJJubfIlDJwdkPQ4H8b1C/tnzfYlBtyZww== Received: from dc5-exch05.marvell.com ([199.233.59.128]) by mx0b-0016f401.pphosted.com (PPS) with ESMTPS id 3xdqc2tw2f-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 11 Apr 2024 01:22:42 -0700 (PDT) Received: from DC5-EXCH05.marvell.com (10.69.176.209) by DC5-EXCH05.marvell.com (10.69.176.209) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.4; Thu, 11 Apr 2024 01:22:41 -0700 Received: from maili.marvell.com (10.69.176.80) by DC5-EXCH05.marvell.com (10.69.176.209) with Microsoft SMTP Server id 15.2.1544.4 via Frontend Transport; Thu, 11 Apr 2024 01:22:41 -0700 Received: from localhost.localdomain (unknown [10.28.36.102]) by maili.marvell.com (Postfix) with ESMTP id 8A4363F706A; Thu, 11 Apr 2024 01:22:35 -0700 (PDT) From: Akhil Goyal To: CC: , , , , , , , , , , , , , , , , , , Akhil Goyal Subject: [PATCH 0/3] cryptodev: add API to get used queue pair depth Date: Thu, 11 Apr 2024 13:52:29 +0530 Message-ID: <20240411082232.3495883-1-gakhil@marvell.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-Proofpoint-ORIG-GUID: QnCYRQNQX2yObtpKPrkVXft_ut7ayHCy X-Proofpoint-GUID: QnCYRQNQX2yObtpKPrkVXft_ut7ayHCy 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-11_02,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. 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 | 15 +++ 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 ++ 12 files changed, 204 insertions(+), 1 deletion(-)