Skip to contentSkip to conversation

bbdev: extend range for alloc function

PATCH Applied Nicolas Chautru 3 participants 7 messages Jun 2, 2023 – Jul 6, 2023

lore
Share & tools
lore
#0 lore raw

cover bbdev: extend range for alloc function

Minor change so that these companions functions are aligned with the size of the range for the underlying rte_mempool_bulk_alloc function. Backward compatible but may allow notably to allocation larger number of operations.

Nicolas Chautru (1):
bbdev: extend range of allocation function

 lib/bbdev/rte_bbdev_op.h | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
Signature · 1 line
2.34.1
#1 lore raw

PATCH 1/1 bbdev: extend range of allocation function

Realigning the argument to unsigned int to
align with number support by underlying
rte_mempool_get_bulk function.

---
 lib/bbdev/rte_bbdev_op.h | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
lib/bbdev/rte_bbdev_op.h +3 -3
index 96a390cd9b..9353fd588b 100644
@@ -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;
 
@@ -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;
 
Signature · 1 line
2.34.1
#3 lore raw

Re: [PATCH v1 1/1] bbdev: extend range of allocation function

In reply to Nicolas Chautru
Quoted 23 lines · Nicolas Chautru

Realigning the argument to unsigned int to
align with number support by underlying
rte_mempool_get_bulk function.

---
  lib/bbdev/rte_bbdev_op.h | 6 +++---
  1 file changed, 3 insertions(+), 3 deletions(-)
lib/bbdev/rte_bbdev_op.h +1 -1
index 96a390cd9b..9353fd588b 100644
@@ -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;
 

lib/bbdev/rte_bbdev_op.h rte_bbdev_enc_op_alloc_bulk(struct rte_mempool *mempool, · line 1018

Quoted 7 lines
lib/bbdev/rte_bbdev_op.h +1 -1
@@ -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?

Quoted 9 lines
lib/bbdev/rte_bbdev_op.h +1 -1
@@ -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;
 
#4 lore raw

RE: [PATCH v1 1/1] bbdev: extend range of allocation function

Hi Maxime,
I don't think it does since no offset position change for the symbol. Also this only extends the type, so still fine if using uin16_t from application. I did not receive an email from CICD related to ABI change when pushing this (unlike the other serie for the MLD/FFT changes pushed earlier this week). Still let me know if you would like this added as well into deprecation notice, but it doesn't look required.
Thanks
Nic

Quoted 54 lines

-----Original Message-----
From: Maxime Coquelin <[email protected]>
Sent: Friday, June 2, 2023 12:56 AM
To: Chautru, Nicolas <[email protected]>; [email protected]
Cc: [email protected]; Vargas, Hernan <[email protected]>
Subject: Re: [PATCH v1 1/1] bbdev: extend range of allocation function

lib/bbdev/rte_bbdev_op.h rte_bbdev_op_pool_create(const char *name,

Quoted 13 lines · Nicolas Chautru

Realigning the argument to unsigned int to align with number support by underlying rte_mempool_get_bulk function.

---
  lib/bbdev/rte_bbdev_op.h | 6 +++---
  1 file changed, 3 insertions(+), 3 deletions(-)
lib/bbdev/rte_bbdev_op.h index renamed from lib/bbdev/rte_bbdev_op.h +0 -0

96a390cd9b..9353fd588b 100644

lib/bbdev/rte_bbdev_op.h +0 -0
@@ -982,7 +982,7 @@ rte_bbdev_op_pool_create(const char *name,

enum rte_bbdev_op_type type,

lib/bbdev/rte_bbdev_op.h rte_bbdev_enc_op_alloc_bulk(struct

Quoted 9 lines
lib/bbdev/rte_bbdev_op.h +1 -1
   */
  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,

lib/bbdev/rte_bbdev_op.h rte_bbdev_enc_op_alloc_bulk(struct rte_mempool *mempool, · line 1018

Quoted 7 lines
lib/bbdev/rte_bbdev_op.h +1 -1
   */
  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?

lib/bbdev/rte_bbdev_op.h rte_bbdev_dec_op_alloc_bulk(struct

Quoted 1 line
lib/bbdev/rte_bbdev_op.h +0 -0
@@ -1045,7 +1045,7 @@ rte_bbdev_dec_op_alloc_bulk(struct

rte_mempool *mempool,

Quoted 8 lines
lib/bbdev/rte_bbdev_op.h +1 -1
  __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;
 
#5 lore raw

Re: [PATCH v1 1/1] bbdev: extend range of allocation function

Quoted 4 lines · Nicolas

Hi Maxime,
I don't think it does since no offset position change for the symbol. Also this only extends the type, so still fine if using uin16_t from application. I did not receive an email from CICD related to ABI change when pushing this (unlike the other serie for the MLD/FFT changes pushed earlier this week). Still let me know if you would like this added as well into deprecation notice, but it doesn't look required.

If ABI checks are OK, then this is good to me.

Thanks,
Maxime

Quoted 58 lines

Thanks
Nic

Quoted 54 lines

-----Original Message-----
From: Maxime Coquelin <[email protected]>
Sent: Friday, June 2, 2023 12:56 AM
To: Chautru, Nicolas <[email protected]>; [email protected]
Cc: [email protected]; Vargas, Hernan <[email protected]>
Subject: Re: [PATCH v1 1/1] bbdev: extend range of allocation function

lib/bbdev/rte_bbdev_op.h rte_bbdev_op_pool_create(const char *name,

Quoted 13 lines · Nicolas Chautru

Realigning the argument to unsigned int to align with number support by underlying rte_mempool_get_bulk function.

---
   lib/bbdev/rte_bbdev_op.h | 6 +++---
   1 file changed, 3 insertions(+), 3 deletions(-)
lib/bbdev/rte_bbdev_op.h index renamed from lib/bbdev/rte_bbdev_op.h +0 -0

96a390cd9b..9353fd588b 100644

lib/bbdev/rte_bbdev_op.h +0 -0
@@ -982,7 +982,7 @@ rte_bbdev_op_pool_create(const char *name,

enum rte_bbdev_op_type type,

lib/bbdev/rte_bbdev_op.h rte_bbdev_enc_op_alloc_bulk(struct

Quoted 9 lines
lib/bbdev/rte_bbdev_op.h +1 -1
    */
   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,

lib/bbdev/rte_bbdev_op.h rte_bbdev_enc_op_alloc_bulk(struct rte_mempool *mempool, · line 1018

Quoted 7 lines
lib/bbdev/rte_bbdev_op.h +1 -1
    */
   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?

lib/bbdev/rte_bbdev_op.h rte_bbdev_dec_op_alloc_bulk(struct

Quoted 1 line
lib/bbdev/rte_bbdev_op.h +0 -0
@@ -1045,7 +1045,7 @@ rte_bbdev_dec_op_alloc_bulk(struct

rte_mempool *mempool,

Quoted 8 lines
lib/bbdev/rte_bbdev_op.h +1 -1
   __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;
 
#6 lore raw

Re: [PATCH v1 1/1] bbdev: extend range of allocation function

In reply to Nicolas Chautru
Quoted 32 lines · Nicolas Chautru

Realigning the argument to unsigned int to
align with number support by underlying
rte_mempool_get_bulk function.

---
  lib/bbdev/rte_bbdev_op.h | 6 +++---
  1 file changed, 3 insertions(+), 3 deletions(-)
lib/bbdev/rte_bbdev_op.h +2 -2
index 96a390cd9b..9353fd588b 100644
@@ -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;
 

lib/bbdev/rte_bbdev_op.h rte_bbdev_dec_op_alloc_bulk(struct rte_mempool *mempool, · line 1051

Quoted 8 lines
lib/bbdev/rte_bbdev_op.h +1 -1
@@ -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;
 

Applied to dpdk-next-baseband/for-main.

Thanks,
Maxime