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 7ABF3A0032; Wed, 6 Jul 2022 18:06:33 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 12D2F40687; Wed, 6 Jul 2022 18:06:33 +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 5435640156 for ; Wed, 6 Jul 2022 18:06:31 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1657123590; 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=3t4jDj7Iv+HTV3EDchluaRF34aGbd0UZC7CGspuQtf8=; b=JO0WFufj3BGyLi5WQsr2a6g30ometklYDVTUpHbMS4ihN/j7Wn7t3TjLtmGKgFu10ZfEvN YYBDAoKILTpeS0XPdCG5FzOb0v6umzTFNj684KU/TXx3rLWxC70ySM32qzkNciK+Mp2oaG 0Jz66z0vMaB32NSceVRHFkl683pQ320= Received: from mail-qt1-f197.google.com (mail-qt1-f197.google.com [209.85.160.197]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-141-ERp0LGNzOu-ZahAOgeYcZw-1; Wed, 06 Jul 2022 12:06:29 -0400 X-MC-Unique: ERp0LGNzOu-ZahAOgeYcZw-1 Received: by mail-qt1-f197.google.com with SMTP id l9-20020ac84589000000b00317cd1e6ef4so12896875qtn.23 for ; Wed, 06 Jul 2022 09:06:29 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=3t4jDj7Iv+HTV3EDchluaRF34aGbd0UZC7CGspuQtf8=; b=bIqodUfMxmwsh6czrHfbWWyx7SDpw1xhAJatT+xiDlieQR2PUoJI9cREjEo3dYrrr5 3CRGj+wNLS+o9sNfHxEnERAlrOWzT6CIBVBacT9JsHNLNxhBoLzfx6VVZmHvVsawHGAU FpXr3yPK70cZSlCKLsNQlUINN82KQYQIlUGSwlL2HlKl7tePguSI6AUR7feV2IKqS48P RDkJgzHBO8zk2836qNSpW8w3SNInv5kWFFLObRIDYyAychlO1Nk+M1aMi2yM4MzBUHPR ZvwdrSlKbGGUxE1cngpeCsmLSgVvwebQRl3QDjqJd96Aq2O9z4rtCXz2oTSBrSCTmO/F JMAQ== X-Gm-Message-State: AJIora+4GJs7Jgcxx98gEmS9tc8A8f9WpvHi2UU2qZ04WpG2oPCT0WP6 yS2wdlMo4eFfCjXfz2aiDNG1X9B2Aqx7xobL4fQfgxEYL/o1kik5I0NSpn4S8vx/QpmeUxzkTul uEx8= X-Received: by 2002:a0c:f3ce:0:b0:473:3c5:d378 with SMTP id f14-20020a0cf3ce000000b0047303c5d378mr7589046qvm.48.1657123589055; Wed, 06 Jul 2022 09:06:29 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tiR9psMVy0V237nKCAcZgkq9oj3kwCEquVTupX2U8umCiUfVCpMdfJS4BTfpgsI0SFGc8hPw== X-Received: by 2002:a0c:f3ce:0:b0:473:3c5:d378 with SMTP id f14-20020a0cf3ce000000b0047303c5d378mr7589008qvm.48.1657123588742; Wed, 06 Jul 2022 09:06:28 -0700 (PDT) Received: from localhost.localdomain (024-205-208-113.res.spectrum.com. [24.205.208.113]) by smtp.gmail.com with ESMTPSA id w11-20020a05622a190b00b003162a22f8f4sm21051576qtc.49.2022.07.06.09.06.26 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 06 Jul 2022 09:06:28 -0700 (PDT) Subject: Re: [PATCH v4 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: maxime.coquelin@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> <1657067022-54373-1-git-send-email-nicolas.chautru@intel.com> <1657067022-54373-4-git-send-email-nicolas.chautru@intel.com> From: Tom Rix Message-ID: <36d168b0-6bbf-b393-2f22-7b2968926cf5@redhat.com> Date: Wed, 6 Jul 2022 09:06:24 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.10.1 MIME-Version: 1.0 In-Reply-To: <1657067022-54373-4-git-send-email-nicolas.chautru@intel.com> Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=trix@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US 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/5/22 5:23 PM, 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]; It is better to add new elements to the end of a structure for better backward compatiblity Tom > /** Queue size limit (queue size must also be power of 2) */ > uint32_t queue_size_lim; > /** Set if device off-loads operation to hardware */