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 6C398A0548; Thu, 25 Aug 2022 17:23:25 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 4DC1040223; Thu, 25 Aug 2022 17:23:25 +0200 (CEST) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by mails.dpdk.org (Postfix) with ESMTP id EC59240156 for ; Thu, 25 Aug 2022 17:23:23 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1661441003; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=a5VjVUmitMg33fKW/5EVtT+Lim6FVcHa36SIj4HeTsk=; b=PMOmQHEFrxqsiGPUrjF6UNkV3Oxomi8mqxYgOdRgR4qR71cPI7/7eje7m6AmCVIJSSCJmF DiPP/U7a1vppL55fGIn2W14Mih1O+xctfhGNyG7isf8eRYAUT6/44+S8RlXNkaUK3a1B14 RMnqk9oO6z4fUsCK5X5ZX5kwGodBLxg= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-437-zA6BNtEGONK7WnRFu8sqRg-1; Thu, 25 Aug 2022 11:23:20 -0400 X-MC-Unique: zA6BNtEGONK7WnRFu8sqRg-1 Received: from smtp.corp.redhat.com (int-mx10.intmail.prod.int.rdu2.redhat.com [10.11.54.10]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id B88FF185A7B2; Thu, 25 Aug 2022 15:23:19 +0000 (UTC) Received: from [10.39.208.44] (unknown [10.39.208.44]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 9F9F2403348; Thu, 25 Aug 2022 15:23:17 +0000 (UTC) Message-ID: Date: Thu, 25 Aug 2022 17:23:15 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.12.0 Subject: Re: [PATCH v5 3/7] bbdev: add device info on queue topology To: Nicolas Chautru , dev@dpdk.org, thomas@monjalon.net, gakhil@marvell.com, hemant.agrawal@nxp.com Cc: trix@redhat.com, mdr@ashroe.eu, bruce.richardson@intel.com, david.marchand@redhat.com, stephen@networkplumber.org References: <1655491040-183649-6-git-send-email-nicolas.chautru@intel.com> <1657150110-69957-1-git-send-email-nicolas.chautru@intel.com> <1657150110-69957-4-git-send-email-nicolas.chautru@intel.com> From: Maxime Coquelin In-Reply-To: <1657150110-69957-4-git-send-email-nicolas.chautru@intel.com> X-Scanned-By: MIMEDefang 2.85 on 10.11.54.10 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Language: en-US Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit 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 On 7/7/22 01:28, Nicolas Chautru wrote: > 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 */ Acked-by: Maxime Coquelin Thanks, Maxime