From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id F1908A04FD; Mon, 3 Oct 2022 20:33:56 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id CA0B2427F7; Mon, 3 Oct 2022 20:33:40 +0200 (CEST) Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by mails.dpdk.org (Postfix) with ESMTP id EC48740F17 for ; Mon, 3 Oct 2022 20:33:38 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1664822019; x=1696358019; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=pEh4bWAsPM7WJrtq4vpw3bPcqsV2GNba3a7StCl1TVM=; b=JJHRqwHbX2fFGvlCCCqtDTdMT0tZDNITUzMl6lX8CgVLE1IadF0isT/z AexYJwpCxhRrv6ptr/D1/ly0vrNh4qpAJWON0wiLgaRaUVVYokPTO/Xza D9sciLfIPZ/vUN+5YZhC/dgEWNiiwXelMkYr8HoVKM9eKQL8dsZ9Z3Y31 IJ/gwVQiqPqi5bbEdVUpZxGmBLeoRE6tXcLkrTY3OJ6WeOrFliy6PX2D5 OZ51UvfpFBmYJm3r86HdCFcfSonSPYe6Yu+lkOJAbM18nircy4Rav/rKj gwnku8gB+ur4MFjjnzxG0wSFDcQhS2sfom+fTrwH6yOdyf4VRiFA9fgeX w==; X-IronPort-AV: E=McAfee;i="6500,9779,10489"; a="285907034" X-IronPort-AV: E=Sophos;i="5.93,366,1654585200"; d="scan'208";a="285907034" Received: from orsmga007.jf.intel.com ([10.7.209.58]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Oct 2022 11:00:37 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10489"; a="618829400" X-IronPort-AV: E=Sophos;i="5.93,366,1654585200"; d="scan'208";a="618829400" Received: from unknown (HELO icx-npg-scs1-cp1.localdomain) ([10.233.180.245]) by orsmga007.jf.intel.com with ESMTP; 03 Oct 2022 11:00:37 -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 v11 3/7] bbdev: add device info on queue topology Date: Mon, 3 Oct 2022 11:00:19 -0700 Message-Id: <20221003180023.13362-4-nicolas.chautru@intel.com> X-Mailer: git-send-email 2.37.1 In-Reply-To: <20221003180023.13362-1-nicolas.chautru@intel.com> References: <1655491040-183649-6-git-send-email-nicolas.chautru@intel.com> <20221003180023.13362-1-nicolas.chautru@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 | 4 ++++ 3 files changed, 5 insertions(+), 4 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..21d076cd36 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 */ -- 2.37.1