Skip to contentSkip to conversation

app/compress-perf: fix number of QPs to setup

PATCH Applied Raja Zidane 2 participants 2 messages Mar 2, 2022 – Mar 4, 2022

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 app/compress-perf: fix number of QPs to setup

The number of QPs is limited by the number of cores, such that in case the user requests more QPs than possible, the number of QPs actually configured on the device is equal to the number of cores, but the app tries to setup the original number of QPs.

Align the number of QPs setup'ed to the limited number.

Fixes 424dd6c8c1a8 ("app/compress-perf: add weak functions for multicore test")
---
 app/test-compress-perf/main.c | 1 +
 1 file changed, 1 insertion(+)
app/test-compress-perf/main.c +1 -0
index 6ff6a2f04a..28b4c1ded7 100644
@@ -194,6 +194,7 @@ comp_perf_initialize_compressdev(struct comp_test_data *test_data,
 			.max_nb_priv_xforms = NUM_MAX_XFORMS,
 			.max_nb_streams = 0
 		};
+		test_data->nb_qps = config.nb_queue_pairs;
 
 		if (rte_compressdev_configure(cdev_id, &config) < 0) {
 			RTE_LOG(ERR, USER1, "Device configuration failed\n");
Signature · 1 line
2.21.0
Applied
#1 lore raw
Quoted 5 lines

The number of QPs is limited by the number of cores, such that in case the user requests more QPs than possible, the number of QPs actually configured on the device is equal to the number of cores, but the app tries to setup the original number of QPs.

Quoted 8 lines

Align the number of QPs setup'ed to the limited number.

Fixes 424dd6c8c1a8 ("app/compress-perf: add weak functions for multicore

test")
Cc: [email protected]

Applied to dpdk-next-crypto