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 B5363A0093; Wed, 9 Mar 2022 01:41:45 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 25F3B410F3; Wed, 9 Mar 2022 01:41:42 +0100 (CET) Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by mails.dpdk.org (Postfix) with ESMTP id 2326540395 for ; Wed, 9 Mar 2022 01:41:40 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1646786501; x=1678322501; h=from:to:cc:subject:date:message-id:in-reply-to: references; bh=aE/uFWvi+UfY+lwCnLjL6CrPNM2U/kK8xqEsm4iM3xM=; b=WJhpMFzyISYp9Ed+8f8A0Cq/jO9FXigqAI79shDod4Se7cMpHZk3alMR siCI0KG5rhI9s0ECjcZCh4rGha6E+FxCTKGET1rSK3RwF7R0wVXwS6YBq Mpb3MDi2GRbT5JFo4jpUOQJLH+FDI+2Ch60ElMuUYNirt3EvVMcYK3Ah6 ySaqWnBQqoKabQg0CpXqreKzKHYCrGi3UAJE6bX+krLJ5Mi05tyvuV/3y 2G5Ew/KJdVfZyBieGyplrXPUWQxhuAzK6Kd1PH2rMxxT83wXRu185VQwu C3Jkh6RIyWQ+TDXOgko2q2/8cKBxaF3ji53CkpbagmNrAgnZk++RuUF9o g==; X-IronPort-AV: E=McAfee;i="6200,9189,10280"; a="254581978" X-IronPort-AV: E=Sophos;i="5.90,165,1643702400"; d="scan'208";a="254581978" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Mar 2022 16:41:39 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.90,165,1643702400"; d="scan'208";a="688116878" Received: from skx-5gnr-sc12-4.sc.intel.com ([172.25.69.210]) by fmsmga001.fm.intel.com with ESMTP; 08 Mar 2022 16:41:38 -0800 From: Nicolas Chautru To: dev@dpdk.org, gakhil@marvell.com Cc: trix@redhat.com, hemant.agrawal@nxp.com, mingshan.zhang@intel.com, Nicolas Chautru Subject: [PATCH v1 1/2] bbdev: add device info on queue topology Date: Tue, 8 Mar 2022 16:22:34 -0800 Message-Id: <1646785355-168133-2-git-send-email-nicolas.chautru@intel.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1646785355-168133-1-git-send-email-nicolas.chautru@intel.com> References: <1646785355-168133-1-git-send-email-nicolas.chautru@intel.com> 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 --- lib/bbdev/rte_bbdev.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/bbdev/rte_bbdev.h b/lib/bbdev/rte_bbdev.h index b88c881..10c06b6 100644 --- a/lib/bbdev/rte_bbdev.h +++ b/lib/bbdev/rte_bbdev.h @@ -274,6 +274,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_COUNT]; + /** Priority level supported per operation type */ + unsigned int queue_priority[RTE_BBDEV_OP_TYPE_COUNT]; /** Queue size limit (queue size must also be power of 2) */ uint32_t queue_size_lim; /** Set if device off-loads operation to hardware */ -- 1.8.3.1