]> git.droids-corp.org - dpdk.git/commitdiff
app/compress-perf: fix number of queue pairs to setup
authorRaja Zidane <rzidane@nvidia.com>
Wed, 2 Mar 2022 08:41:31 +0000 (10:41 +0200)
committerAkhil Goyal <gakhil@marvell.com>
Fri, 4 Mar 2022 09:53:09 +0000 (10:53 +0100)
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")
Cc: stable@dpdk.org
Signed-off-by: Raja Zidane <rzidane@nvidia.com>
Acked-by: Matan Azrad <matan@nvidia.com>
app/test-compress-perf/main.c

index 3402b65c637718db2480582f328dc29707e993d2..ce9e80bedc4593291d8e7a0bac4c9d5ac3bc49c7 100644 (file)
@@ -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");