Skip to content

Commit

Permalink
app/compress-perf: fix number of queue pairs to setup
Browse files Browse the repository at this point in the history
[ upstream commit e77e8b6 ]

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: 424dd6c ("app/compress-perf: add weak functions for multicore test")

Signed-off-by: Raja Zidane <rzidane@nvidia.com>
Acked-by: Matan Azrad <matan@nvidia.com>
  • Loading branch information
RajaZid20 authored and bluca committed Mar 9, 2022
1 parent 9df88bf commit 6b75eec
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/test-compress-perf/main.c
Expand Up @@ -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");
Expand Down

0 comments on commit 6b75eec

Please sign in to comment.