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 03808A0C41; Wed, 17 Nov 2021 16:33:23 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id CF88A41181; Wed, 17 Nov 2021 16:33:19 +0100 (CET) Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by mails.dpdk.org (Postfix) with ESMTP id CBE3940040 for ; Wed, 17 Nov 2021 03:32:50 +0100 (CET) X-IronPort-AV: E=McAfee;i="6200,9189,10170"; a="231336966" X-IronPort-AV: E=Sophos;i="5.87,239,1631602800"; d="scan'208";a="231336966" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Nov 2021 18:32:49 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.87,239,1631602800"; d="scan'208";a="506716034" Received: from unknown (HELO localhost.localdomain.bj.intel.com) ([10.240.224.210]) by orsmga008.jf.intel.com with ESMTP; 16 Nov 2021 18:32:25 -0800 From: "Zhang, Mingshan" To: dev@dpdk.org, akhil.goyal@nxp.com Cc: nicolas.chautru@intel.com, Mingshan Zhang Subject: [PATCH -v1] bbdev: update num_ops type to be uint32_t in rte_bbdev_enc_op_alloc_bulk Date: Wed, 17 Nov 2021 09:55:32 +0800 Message-Id: <1637114132-250109-2-git-send-email-mingshan.zhang@intel.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1637114132-250109-1-git-send-email-mingshan.zhang@intel.com> References: <1637114132-250109-1-git-send-email-mingshan.zhang@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Mailman-Approved-At: Wed, 17 Nov 2021 16:33:17 +0100 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 From: Mingshan Zhang update num_ops type to be uint32_t in rte_bbdev_enc_op_alloc_bulk   Signed-off-by: Mingshan Zhang --- doc/guides/prog_guide/bbdev.rst | 4 ++-- lib/bbdev/rte_bbdev_op.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/doc/guides/prog_guide/bbdev.rst b/doc/guides/prog_guide/bbdev.rst index 70fa01a..c330e08 100644 --- a/doc/guides/prog_guide/bbdev.rst +++ b/doc/guides/prog_guide/bbdev.rst @@ -387,10 +387,10 @@ allocate bbdev operations of a specific type from a given bbdev operation mempoo .. code-block:: c 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, uint32_t num_ops) 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, uint32_t num_ops) ``rte_bbdev_*_op_free_bulk()`` is called by the application to return an operation to its allocating pool. diff --git a/lib/bbdev/rte_bbdev_op.h b/lib/bbdev/rte_bbdev_op.h index 5512859..f074b35 100644 --- a/lib/bbdev/rte_bbdev_op.h +++ b/lib/bbdev/rte_bbdev_op.h @@ -867,7 +867,7 @@ struct rte_mempool * __rte_experimental 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, uint32_t num_ops) { struct rte_bbdev_op_pool_private *priv; int ret; @@ -904,7 +904,7 @@ struct rte_mempool * __rte_experimental 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, uint32_t num_ops) { struct rte_bbdev_op_pool_private *priv; int ret; -- 1.8.3.1