Update num_ops type to be uint32_t in rte_bbdev_enc_op_alloc_bulk
PATCH 1/1 Update num_ops type to be uint32_t in rte_bbdev_enc_op_alloc_bulk
From: "Zhang, Mingshan" <[email protected]>
Update num_ops type from uint16_t to uint32_t in rte_bbdev_enc_op_alloc_bulk to enlarge the input range.
Mingshan Zhang (1):
bbdev: update num_ops type to be uint32_t in
rte_bbdev_enc_op_alloc_bulk
doc/guides/prog_guide/bbdev.rst | 4 ++-- lib/bbdev/rte_bbdev_op.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-)
Signature · 1 line
1.8.3.1
PATCH 1/1 bbdev: update num_ops type to be uint32_t in rte_bbdev_enc_op_alloc_bulk
From: Mingshan Zhang <[email protected]>
update num_ops type to be uint32_t in rte_bbdev_enc_op_alloc_bulk
--- doc/guides/prog_guide/bbdev.rst | 4 ++-- lib/bbdev/rte_bbdev_op.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-)
doc/guides/prog_guide/bbdev.rst +2 -2
@@ -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.
lib/bbdev/rte_bbdev_op.h +2 -2
@@ -867,7 +867,7 @@ struct rte_mempool *__rte_experimental static inline intrte_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 intrte_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;
Signature · 1 line
1.8.3.1
RE: [EXT] [PATCH -v1] bbdev: update num_ops type to be uint32_t in rte_bbdev_enc_op_alloc_bulk
Quoted 1 line
From: Mingshan Zhang <[email protected]>
Title is too big. Please run ./devtools/check-git-log.sh.
Quoted 2 lines
update
num_opstype to beuint32_tinrte_bbdev_enc_op_alloc_bulk
Explain the need for this change. We only take critical fixes in the APIs for RC4. Bbdev APIs are not experimental anymore. Please rebase on TOT.
This change is an API change which may need deprecation notice from next release.
Quoted 50 lines
Signed-off-by Mingshan Zhang <[email protected]>--- doc/guides/prog_guide/bbdev.rst | 4 ++-- lib/bbdev/rte_bbdev_op.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-)doc/guides/prog_guide/bbdev.rst +0
-0@@ -387,10 +387,10 @@ allocate bbdev operations of a specific type from agiven bbdev operation mempoo
.. code-block:: cint rte_bbdev_enc_op_alloc_bulk(struct
rte_mempool*mempool,doc/guides/prog_guide/bbdev.rst +2
-2- 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.lib/bbdev/rte_bbdev_op.h +2
-3@@ -867,7 +867,7 @@ struct rte_mempool *__rte_experimental static inline intrte_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 intrte_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
RE: [EXT] [PATCH -v1] bbdev: update num_ops type to be uint32_t in rte_bbdev_enc_op_alloc_bulk
Hi Akhil,
The change below from Mingshan is not for 21.11, this is targeting following release. It should have been mentioned in cover letter. Thanks
Nic
Quoted 64 lines
-----Original Message-----
From: Akhil Goyal <[email protected]>
Sent: Wednesday, November 17, 2021 11:21 PM
To: Zhang, Mingshan <[email protected]>; [email protected]; [email protected]
Cc: Chautru, Nicolas <[email protected]>
Subject: RE: [EXT] [PATCH -v1] bbdev: updatenum_opstype to beuint32_tinrte_bbdev_enc_op_alloc_bulkQuoted 1 line
From: Mingshan Zhang <[email protected]>
Title is too big. Please run
./devtools/check-git-log.sh.Quoted 2 lines
update
num_opstype to beuint32_tinrte_bbdev_enc_op_alloc_bulkExplain the need for this change. We only take critical fixes in the APIs for RC4.
Bbdev APIs are not experimental anymore. Please rebase on TOT. This change is an API change which may need deprecation notice from next release.Quoted 44 lines
Signed-off-by Mingshan Zhang <[email protected]>--- doc/guides/prog_guide/bbdev.rst | 4 ++-- lib/bbdev/rte_bbdev_op.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-)(quoted diff) +0
-0
b/doc/guides/prog_guide/bbdev.rstindex 70fa01a..c330e08 100644doc/guides/prog_guide/bbdev.rst +0
-0@@ -387,10 +387,10 @@ allocate bbdev operations of a specific typefrom a given bbdev operation mempoo .. code-block:: c
int rte_bbdev_enc_op_alloc_bulk(struct
rte_mempool*mempool,doc/guides/prog_guide/bbdev.rst +2
-2- 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 returnan operation to its allocating pool.
lib/bbdev/rte_bbdev_op.h index renamed from lib/bbdev/rte_bbdev_op.h +0
-05512859..f074b35 100644
lib/bbdev/rte_bbdev_op.h +2
-3@@ -867,7 +867,7 @@ struct rte_mempool * __rte_experimental staticinline 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 staticinline 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