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 8CDC5A0542; Mon, 29 Aug 2022 20:31:38 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 847DC4282B; Mon, 29 Aug 2022 20:31:25 +0200 (CEST) Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by mails.dpdk.org (Postfix) with ESMTP id 90D354069D for ; Mon, 29 Aug 2022 20:31:22 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1661797882; x=1693333882; h=from:to:cc:subject:date:message-id:in-reply-to: references; bh=UHL+Z6CNyAX7DjS3jh6jxcgi1bc+kUYSfnPFHwpU/TY=; b=EMVtmUdbqJsP+T2WFKCfW8/WHTHyNdkNQhPoYoPSP6MzvG9TmdsdZdBC VI290VdIQt71V0wuI5d2DOU3U2l0oIw9CTADQ9x/HJWdFN5miwt5JLB6c 3A8P/eIGfPrrVHQ+LeWBqdVKmrJg8ZrGRn5TiWze22uVRTtDo6UcsWCFY 9OFtHI/72sUNtH3eRukTjhnzKBEPWyrK/vARwVHgdMctst489+5mDabqc EqqukDEROPSKiepaShiNQAo6zZgWD4rCGUGbKCuLyTFDSf6l/0jACjStD MQyKqNY9uwiz3bRd4WYC9NI0mj0jrHR7ZLVMK/aLhoKCh70jjsj2wZbNh g==; X-IronPort-AV: E=McAfee;i="6500,9779,10454"; a="381267880" X-IronPort-AV: E=Sophos;i="5.93,273,1654585200"; d="scan'208";a="381267880" Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Aug 2022 11:28:17 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.93,273,1654585200"; d="scan'208";a="611396754" Received: from skx-5gnr-sc12-4.sc.intel.com ([172.25.69.210]) by orsmga002.jf.intel.com with ESMTP; 29 Aug 2022 11:28:16 -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, mingshan.zhang@intel.com, Nicolas Chautru Subject: [PATCH v7 3/7] bbdev: add device info on queue topology Date: Mon, 29 Aug 2022 11:07:14 -0700 Message-Id: <1661796438-204861-4-git-send-email-nicolas.chautru@intel.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1661796438-204861-1-git-send-email-nicolas.chautru@intel.com> References: <1655491040-183649-6-git-send-email-nicolas.chautru@intel.com> <1661796438-204861-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 Acked-by: Maxime Coquelin --- 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