From patchwork Tue Oct 4 17:16:52 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Chautru, Nicolas" X-Patchwork-Id: 117331 X-Patchwork-Delegate: gakhil@marvell.com 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 C8C4CA0542; Tue, 4 Oct 2022 19:17:27 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 0D92E4282E; Tue, 4 Oct 2022 19:17:12 +0200 (CEST) Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by mails.dpdk.org (Postfix) with ESMTP id 64517410E7 for ; Tue, 4 Oct 2022 19:17:09 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1664903829; x=1696439829; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=Q0yTSZIHvVUYXa+ekVBJZLKUeIiEC4Df522y9lXCPpk=; b=cjHasl+D3exG0vvypu59+I9bWlt4t6yC69bTj2qcEoEvugQ8eDWwwJmS p1fagFq/j1ScKNfon1cwYCUpb7QvuxyetnfZXsxY13ZjvgPFWmCPEYKhj wnHTv/7ap4Ca4lmJGS9/jIGuPBIdMD7AZ2jm7rvD9hh+NhoPI9vHuAcI4 LiTAHTiFCo4XOoJabhLL7MuSuSG88Uyrbjmupsmga7YI0m/skEXTjaGRn mNthYyy7LTVOO5VUC5jXSHmDWSTTp2pMG+ISQS2NoPiVwr4roVUr6vwhv rS8uxxauHnL7vrq+FWF9PJrBHa/C59nw7zKMAKxUyvJJ5YeeV/m7/aqgv g==; X-IronPort-AV: E=McAfee;i="6500,9779,10490"; a="290192269" X-IronPort-AV: E=Sophos;i="5.95,158,1661842800"; d="scan'208";a="290192269" Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Oct 2022 10:17:06 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10490"; a="626256644" X-IronPort-AV: E=Sophos;i="5.95,158,1661842800"; d="scan'208";a="626256644" Received: from unknown (HELO icx-npg-scs1-cp1.localdomain) ([10.233.180.245]) by fmsmga007.fm.intel.com with ESMTP; 04 Oct 2022 10:17:06 -0700 From: Nicolas Chautru To: dev@dpdk.org, thomas@monjalon.net, gakhil@marvell.com Cc: maxime.coquelin@redhat.com, trix@redhat.com, mdr@ashroe.eu, bruce.richardson@intel.com, david.marchand@redhat.com, stephen@networkplumber.org, mingshan.zhang@intel.com, hemant.agrawal@nxp.com, Nicolas Chautru Subject: [PATCH v12 3/7] bbdev: add device info on queue topology Date: Tue, 4 Oct 2022 10:16:52 -0700 Message-Id: <20221004171656.17967-4-nicolas.chautru@intel.com> X-Mailer: git-send-email 2.37.1 In-Reply-To: <20221004171656.17967-1-nicolas.chautru@intel.com> References: <1655491040-183649-6-git-send-email-nicolas.chautru@intel.com> <20221004171656.17967-1-nicolas.chautru@intel.com> MIME-Version: 1.0 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 Adding more options in the API to expose the number of queues exposed and related priority. Signed-off-by: Nicolas Chautru Acked-by: Maxime Coquelin --- doc/guides/rel_notes/deprecation.rst | 3 --- doc/guides/rel_notes/release_22_11.rst | 2 +- lib/bbdev/rte_bbdev.h | 6 +++++- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/doc/guides/rel_notes/deprecation.rst b/doc/guides/rel_notes/deprecation.rst index 3bf5a4a7bd..b6485019d2 100644 --- a/doc/guides/rel_notes/deprecation.rst +++ b/doc/guides/rel_notes/deprecation.rst @@ -122,9 +122,6 @@ Deprecation Notices * bbdev: Will extend API to support new operation type ``RTE_BBDEV_OP_FFT`` as per this `RFC `__. - New members will be added in ``rte_bbdev_driver_info`` to expose - PMD queue topology inspired by - this `RFC `__. This should be updated in DPDK 22.11. * cryptodev: Hide structures ``rte_cryptodev_sym_session`` and diff --git a/doc/guides/rel_notes/release_22_11.rst b/doc/guides/rel_notes/release_22_11.rst index 4a1a7bdc5e..0b4e28f416 100644 --- a/doc/guides/rel_notes/release_22_11.rst +++ b/doc/guides/rel_notes/release_22_11.rst @@ -322,7 +322,7 @@ ABI Changes macro is added. * bbdev: Structure ``rte_bbdev_driver_info`` was updated to add new parameters - for device status using ``rte_bbdev_device_status``. + for queue topology, device status using ``rte_bbdev_device_status``. Known Issues ------------ diff --git a/lib/bbdev/rte_bbdev.h b/lib/bbdev/rte_bbdev.h index 3c428c14e9..4228b4550f 100644 --- a/lib/bbdev/rte_bbdev.h +++ b/lib/bbdev/rte_bbdev.h @@ -289,6 +289,10 @@ struct rte_bbdev_driver_info { /** Maximum number of queues supported by the device */ unsigned int max_num_queues; + /** Maximum number of queues supported per operation type */ + unsigned int num_queues[RTE_BBDEV_OP_TYPE_SIZE_MAX]; + /** Priority level supported per operation type */ + unsigned int queue_priority[RTE_BBDEV_OP_TYPE_SIZE_MAX]; /** Queue size limit (queue size must also be power of 2) */ uint32_t queue_size_lim; /** Set if device off-loads operation to hardware */ @@ -851,7 +855,7 @@ rte_bbdev_queue_intr_ctl(uint16_t dev_id, uint16_t queue_id, int epfd, int op, * Device status as enum. * * @returns - * Operation type as string or NULL if op_type is invalid. + * Device status as string or NULL if invalid. * */ __rte_experimental