patch 'app/compress-perf: fix remaining data for ops' has been queued to stable release 22.11.2
Xueming Li
xuemingl at nvidia.com
Sun Apr 9 17:24:54 CEST 2023
Hi,
FYI, your patch has been queued to stable release 22.11.2
Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet.
It will be pushed if I get no objections before 04/11/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://git.dpdk.org/dpdk-stable/log/?h=22.11-staging
This queued commit can be viewed at:
https://git.dpdk.org/dpdk-stable/log/?h=22.11-staging/commit/6919a8d8745c1a1558af741e2031660c0e7231a4
Thanks.
Xueming Li <xuemingl at nvidia.com>
---
>From 6919a8d8745c1a1558af741e2031660c0e7231a4 Mon Sep 17 00:00:00 2001
From: Arkadiusz Kusztal <arkadiuszx.kusztal at intel.com>
Date: Fri, 10 Mar 2023 16:27:05 +0000
Subject: [PATCH] app/compress-perf: fix remaining data for ops
Cc: Xueming Li <xuemingl at nvidia.com>
[ upstream commit cf8c0c65514a12d4f326417f7cf54433338ed226 ]
Individual variables are needed for tracking the remaining data for
compression and decompression.
Fixes: 83cc3b90ad7a ("app/compress-perf: fix testing single operation")
Signed-off-by: Arkadiusz Kusztal <arkadiuszx.kusztal at intel.com>
Signed-off-by: Ciara Power <ciara.power at intel.com>
Acked-by: Kai Ji <kai.ji at intel.com>
---
app/test-compress-perf/comp_perf_test_common.c | 11 ++++++-----
1 file changed, 6 insertions(+), 5 deletions(-)
diff --git a/app/test-compress-perf/comp_perf_test_common.c b/app/test-compress-perf/comp_perf_test_common.c
index cd60958944..78487196ad 100644
--- a/app/test-compress-perf/comp_perf_test_common.c
+++ b/app/test-compress-perf/comp_perf_test_common.c
@@ -366,6 +366,7 @@ int
prepare_bufs(struct comp_test_data *test_data, struct cperf_mem_resources *mem)
{
uint32_t remaining_data = test_data->input_data_sz;
+ uint32_t remaining_data_decomp = test_data->input_data_sz;
uint8_t *input_data_ptr = test_data->input_data;
size_t data_sz = 0;
uint8_t *data_addr;
@@ -482,7 +483,7 @@ prepare_bufs(struct comp_test_data *test_data, struct cperf_mem_resources *mem)
}
if (decompress_only)
- data_sz = RTE_MIN(remaining_data, test_data->seg_sz);
+ data_sz = RTE_MIN(remaining_data_decomp, test_data->seg_sz);
else
data_sz = test_data->out_seg_sz;
@@ -496,11 +497,11 @@ prepare_bufs(struct comp_test_data *test_data, struct cperf_mem_resources *mem)
if (decompress_only) {
rte_memcpy(data_addr, input_data_ptr, data_sz);
input_data_ptr += data_sz;
- remaining_data -= data_sz;
+ remaining_data_decomp -= data_sz;
}
/* Chain mbufs if needed for output mbufs */
- for (j = 1; j < segs_per_mbuf && remaining_data > 0; j++) {
+ for (j = 1; j < segs_per_mbuf && remaining_data_decomp > 0; j++) {
struct rte_mbuf *next_seg =
rte_pktmbuf_alloc(mem->comp_buf_pool);
@@ -521,7 +522,7 @@ prepare_bufs(struct comp_test_data *test_data, struct cperf_mem_resources *mem)
}
if (decompress_only)
- data_sz = RTE_MIN(remaining_data,
+ data_sz = RTE_MIN(remaining_data_decomp,
test_data->seg_sz);
else
data_sz = test_data->out_seg_sz;
@@ -536,7 +537,7 @@ prepare_bufs(struct comp_test_data *test_data, struct cperf_mem_resources *mem)
if (decompress_only) {
rte_memcpy(data_addr, input_data_ptr, data_sz);
input_data_ptr += data_sz;
- remaining_data -= data_sz;
+ remaining_data_decomp -= data_sz;
}
if (rte_pktmbuf_chain(mem->comp_bufs[i],
--
2.25.1
---
Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- - 2023-04-09 21:45:41.503368300 +0800
+++ 0106-app-compress-perf-fix-remaining-data-for-ops.patch 2023-04-09 21:45:38.759042200 +0800
@@ -1 +1 @@
-From cf8c0c65514a12d4f326417f7cf54433338ed226 Mon Sep 17 00:00:00 2001
+From 6919a8d8745c1a1558af741e2031660c0e7231a4 Mon Sep 17 00:00:00 2001
@@ -4,0 +5,3 @@
+Cc: Xueming Li <xuemingl at nvidia.com>
+
+[ upstream commit cf8c0c65514a12d4f326417f7cf54433338ed226 ]
@@ -10 +12,0 @@
-Cc: stable at dpdk.org
More information about the stable
mailing list