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 BC64942C0E; Fri, 2 Jun 2023 09:56:23 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 93B9140ED8; Fri, 2 Jun 2023 09:56:23 +0200 (CEST) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by mails.dpdk.org (Postfix) with ESMTP id B03EC406B8 for ; Fri, 2 Jun 2023 09:56:22 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1685692582; 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=vjDmNDA76OCwQ85HARbWiDlVT7CnHKXp663HTeK8DLE=; b=AFuhduafjJD3Ac9kCC4/SMbwCGsDwQmj69VQlGJ2s7wWtAmZv1pH6m6LGTQbN1dLN63feM MiO0EI88ivm8mdmWtQtGjOxWXzkR585Lhn+KRQiGyBn2S8vpBKBe33TSvtLj/EXpHK7X0r 2mPYs05sJeUMRkngkhnPaSXz/kpfyok= Received: from mimecast-mx02.redhat.com (mx3-rdu2.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-584-k7GyPOkCOISF5JK2gGdl6Q-1; Fri, 02 Jun 2023 03:56:16 -0400 X-MC-Unique: k7GyPOkCOISF5JK2gGdl6Q-1 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.rdu2.redhat.com [10.11.54.3]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 4F90D28EA6E4; Fri, 2 Jun 2023 07:56:16 +0000 (UTC) Received: from [10.39.208.25] (unknown [10.39.208.25]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 769B01121314; Fri, 2 Jun 2023 07:56:15 +0000 (UTC) Message-ID: Date: Fri, 2 Jun 2023 09:56:14 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.10.0 Subject: Re: [PATCH v1 1/1] bbdev: extend range of allocation function To: Nicolas Chautru , dev@dpdk.org Cc: hemant.agrawal@nxp.com, hernan.vargas@intel.com References: <20230602020423.426465-1-nicolas.chautru@intel.com> <20230602020423.426465-2-nicolas.chautru@intel.com> From: Maxime Coquelin In-Reply-To: <20230602020423.426465-2-nicolas.chautru@intel.com> X-Scanned-By: MIMEDefang 3.1 on 10.11.54.3 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 6/2/23 04:04, Nicolas Chautru wrote: > Realigning the argument to unsigned int to > align with number support by underlying > rte_mempool_get_bulk function. > > Signed-off-by: Nicolas Chautru > --- > lib/bbdev/rte_bbdev_op.h | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) > > diff --git a/lib/bbdev/rte_bbdev_op.h b/lib/bbdev/rte_bbdev_op.h > index 96a390cd9b..9353fd588b 100644 > --- a/lib/bbdev/rte_bbdev_op.h > +++ b/lib/bbdev/rte_bbdev_op.h > @@ -982,7 +982,7 @@ rte_bbdev_op_pool_create(const char *name, enum rte_bbdev_op_type type, > */ > static inline int > rte_bbdev_enc_op_alloc_bulk(struct rte_mempool *mempool, > - struct rte_bbdev_enc_op **ops, uint16_t num_ops) > + struct rte_bbdev_enc_op **ops, unsigned int num_ops) > { > struct rte_bbdev_op_pool_private *priv; > > @@ -1013,7 +1013,7 @@ rte_bbdev_enc_op_alloc_bulk(struct rte_mempool *mempool, > */ > static inline int > rte_bbdev_dec_op_alloc_bulk(struct rte_mempool *mempool, > - struct rte_bbdev_dec_op **ops, uint16_t num_ops) > + struct rte_bbdev_dec_op **ops, unsigned int num_ops) > { > struct rte_bbdev_op_pool_private *priv; Isn't it breaking the ABI? > @@ -1045,7 +1045,7 @@ rte_bbdev_dec_op_alloc_bulk(struct rte_mempool *mempool, > __rte_experimental > static inline int > rte_bbdev_fft_op_alloc_bulk(struct rte_mempool *mempool, > - struct rte_bbdev_fft_op **ops, uint16_t num_ops) > + struct rte_bbdev_fft_op **ops, unsigned int num_ops) > { > struct rte_bbdev_op_pool_private *priv; >