]> git.droids-corp.org - dpdk.git/commit
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)
commite77e8b66d1f917419f9e6bea4148a3f246bbc75d
tree039afd7f700ccbabddd7b5d9c3d747f74013d1e7
parent220b51f78b46bf773e513a09bf2fa67a9b8428ba
app/compress-perf: fix number of queue pairs 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")
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