patch 'app/bbdev: add allocation checks' has been queued to stable release 20.11.8

luca.boccassi at gmail.com luca.boccassi at gmail.com
Thu Feb 23 10:36:21 CET 2023


Hi,

FYI, your patch has been queued to stable release 20.11.8

Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet.
It will be pushed if I get no objections before 02/25/23. So please
shout if anyone has objections.

Also note that after the patch there's a diff of the upstream commit vs the
patch applied to the branch. This will indicate if there was any rebasing
needed to apply to the stable branch. If there were code changes for rebasing
(ie: not only metadata diffs), please double check that the rebase was
correctly done.

Queued patches are on a temporary branch at:
https://github.com/bluca/dpdk-stable

This queued commit can be viewed at:
https://github.com/bluca/dpdk-stable/commit/eb40823a13fe79a6f0328015f4c2e6587f6dd8bb

Thanks.

Luca Boccassi

---
>From eb40823a13fe79a6f0328015f4c2e6587f6dd8bb Mon Sep 17 00:00:00 2001
From: Nicolas Chautru <nicolas.chautru at intel.com>
Date: Tue, 13 Dec 2022 08:18:55 -0800
Subject: [PATCH] app/bbdev: add allocation checks

[ upstream commit 8abe31b1d9d9448ab4ab1d98a22314a2fa9fbfc6 ]

Adding check for error on return of the
rte_bbdev_*_op_alloc_bulk calls in bbdev-test.

Fixes: f714a18885a6 ("app/testbbdev: add test application for bbdev")

Signed-off-by: Nicolas Chautru <nicolas.chautru at intel.com>
Reviewed-by: Maxime Coquelin <maxime.coquelin at redhat.com>
---
 app/test-bbdev/test_bbdev_perf.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/app/test-bbdev/test_bbdev_perf.c b/app/test-bbdev/test_bbdev_perf.c
index 36589f3c3e..f38d991f87 100644
--- a/app/test-bbdev/test_bbdev_perf.c
+++ b/app/test-bbdev/test_bbdev_perf.c
@@ -4361,7 +4361,8 @@ offload_latency_test_dec(struct rte_mempool *mempool, struct test_buffers *bufs,
 		if (unlikely(num_to_process - dequeued < burst_sz))
 			burst_sz = num_to_process - dequeued;
 
-		rte_bbdev_dec_op_alloc_bulk(mempool, ops_enq, burst_sz);
+		ret = rte_bbdev_dec_op_alloc_bulk(mempool, ops_enq, burst_sz);
+		TEST_ASSERT_SUCCESS(ret, "Allocation failed for %d ops", burst_sz);
 		if (test_vector.op_type != RTE_BBDEV_OP_NONE)
 			copy_reference_dec_op(ops_enq, burst_sz, dequeued,
 					bufs->inputs,
@@ -4446,7 +4447,8 @@ offload_latency_test_ldpc_dec(struct rte_mempool *mempool,
 		if (unlikely(num_to_process - dequeued < burst_sz))
 			burst_sz = num_to_process - dequeued;
 
-		rte_bbdev_dec_op_alloc_bulk(mempool, ops_enq, burst_sz);
+		ret = rte_bbdev_dec_op_alloc_bulk(mempool, ops_enq, burst_sz);
+		TEST_ASSERT_SUCCESS(ret, "Allocation failed for %d ops", burst_sz);
 		if (test_vector.op_type != RTE_BBDEV_OP_NONE)
 			copy_reference_ldpc_dec_op(ops_enq, burst_sz, dequeued,
 					bufs->inputs,
-- 
2.39.1

---
  Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- -	2023-02-23 09:36:28.967985419 +0000
+++ 0017-app-bbdev-add-allocation-checks.patch	2023-02-23 09:36:28.194169351 +0000
@@ -1 +1 @@
-From 8abe31b1d9d9448ab4ab1d98a22314a2fa9fbfc6 Mon Sep 17 00:00:00 2001
+From eb40823a13fe79a6f0328015f4c2e6587f6dd8bb Mon Sep 17 00:00:00 2001
@@ -5,0 +6,2 @@
+[ upstream commit 8abe31b1d9d9448ab4ab1d98a22314a2fa9fbfc6 ]
+
@@ -10 +11,0 @@
-Cc: stable at dpdk.org
@@ -15,2 +16,2 @@
- app/test-bbdev/test_bbdev_perf.c | 9 ++++++---
- 1 file changed, 6 insertions(+), 3 deletions(-)
+ app/test-bbdev/test_bbdev_perf.c | 6 ++++--
+ 1 file changed, 4 insertions(+), 2 deletions(-)
@@ -19 +20 @@
-index 90eff6364e..e001074861 100644
+index 36589f3c3e..f38d991f87 100644
@@ -22,11 +23 @@
-@@ -4958,7 +4958,8 @@ offload_latency_test_fft(struct rte_mempool *mempool, struct test_buffers *bufs,
- 		if (unlikely(num_to_process - dequeued < burst_sz))
- 			burst_sz = num_to_process - dequeued;
- 
--		rte_bbdev_fft_op_alloc_bulk(mempool, ops_enq, burst_sz);
-+		ret = rte_bbdev_fft_op_alloc_bulk(mempool, ops_enq, burst_sz);
-+		TEST_ASSERT_SUCCESS(ret, "Allocation failed for %d ops", burst_sz);
- 		if (test_vector.op_type != RTE_BBDEV_OP_NONE)
- 			copy_reference_fft_op(ops_enq, burst_sz, dequeued,
- 					bufs->inputs,
-@@ -5039,7 +5040,8 @@ offload_latency_test_dec(struct rte_mempool *mempool, struct test_buffers *bufs,
+@@ -4361,7 +4361,8 @@ offload_latency_test_dec(struct rte_mempool *mempool, struct test_buffers *bufs,
@@ -42 +33 @@
-@@ -5124,7 +5126,8 @@ offload_latency_test_ldpc_dec(struct rte_mempool *mempool,
+@@ -4446,7 +4447,8 @@ offload_latency_test_ldpc_dec(struct rte_mempool *mempool,


More information about the stable mailing list