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 A2541A0544; Wed, 6 Jul 2022 02:38:14 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 1AA3542B8E; Wed, 6 Jul 2022 02:37:54 +0200 (CEST) Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by mails.dpdk.org (Postfix) with ESMTP id 31B3440DF7 for ; Wed, 6 Jul 2022 02:37:49 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1657067869; x=1688603869; h=from:to:cc:subject:date:message-id:in-reply-to: references; bh=ncRVSBSw0YjCMEerYRJlPB/82Y/U9HZwKDS6Wi0wf+A=; b=JoSf8hZL8C16QJmuSvjNY8j+KiEiGdN3IPV/TXrfCWeGKmnjIZN8KwBD wz03w2ZA01BdMzxgTiCi5O3o5CD6K/2Wm2EJEY+cw4miQTwHZrAmV3Mem 3WU02iI0nf7n2XWwa7WniSJW6OO8QXOOsN+8m/xOCpdEMRrbdtIeo7g2w lexHVFlfsKTkFMBRegFyTAg5l4oHmb1A7rovWlVi11MWL4Xzwe6LWPp8L 7uHjhHjTjJLChESIhk0KZIIYUc7Vsgp5XR5Z68qy8Qbg9VtOqU8K1WRrO D9yhNBP8ekBNz4YY0KQJe+HbrQypbAz1rGhmU+0s/27zZxCQXVvDc61wi g==; X-IronPort-AV: E=McAfee;i="6400,9594,10399"; a="272380893" X-IronPort-AV: E=Sophos;i="5.92,248,1650956400"; d="scan'208";a="272380893" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Jul 2022 17:37:47 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.92,248,1650956400"; d="scan'208";a="650411628" Received: from skx-5gnr-sc12-4.sc.intel.com ([172.25.69.210]) by fmsmga008.fm.intel.com with ESMTP; 05 Jul 2022 17:37:46 -0700 From: Nicolas Chautru To: dev@dpdk.org, thomas@monjalon.net, gakhil@marvell.com, hemant.agrawal@nxp.com Cc: maxime.coquelin@redhat.com, trix@redhat.com, mdr@ashroe.eu, bruce.richardson@intel.com, david.marchand@redhat.com, stephen@networkplumber.org, Nicolas Chautru Subject: [PATCH v4 3/7] bbdev: add device info on queue topology Date: Tue, 5 Jul 2022 17:23:38 -0700 Message-Id: <1657067022-54373-4-git-send-email-nicolas.chautru@intel.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1657067022-54373-1-git-send-email-nicolas.chautru@intel.com> References: <1655491040-183649-6-git-send-email-nicolas.chautru@intel.com> <1657067022-54373-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 9b1ffa4..ac941d6 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_PADDED_MAX]; + /** Priority level supported per operation type */ + unsigned int queue_priority[RTE_BBDEV_OP_TYPE_PADDED_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 */ -- 1.8.3.1