patches for DPDK stable branches
 help / color / mirror / Atom feed
* [PATCH] app/compress-perf: fix number of QPs to setup
@ 2022-03-02  8:41 Raja Zidane
  2022-03-04  9:56 ` [EXT] " Akhil Goyal
  0 siblings, 1 reply; 2+ messages in thread
From: Raja Zidane @ 2022-03-02  8:41 UTC (permalink / raw)
  To: dev; +Cc: matan, stable

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 | 1 +
 1 file changed, 1 insertion(+)

diff --git a/app/test-compress-perf/main.c b/app/test-compress-perf/main.c
index 6ff6a2f04a..28b4c1ded7 100644
--- a/app/test-compress-perf/main.c
+++ b/app/test-compress-perf/main.c
@@ -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");
-- 
2.21.0


^ permalink raw reply	[flat|nested] 2+ messages in thread

* RE: [EXT] [PATCH] app/compress-perf: fix number of QPs to setup
  2022-03-02  8:41 [PATCH] app/compress-perf: fix number of QPs to setup Raja Zidane
@ 2022-03-04  9:56 ` Akhil Goyal
  0 siblings, 0 replies; 2+ messages in thread
From: Akhil Goyal @ 2022-03-04  9:56 UTC (permalink / raw)
  To: Raja Zidane, dev; +Cc: matan, stable

> 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>
Applied to dpdk-next-crypto


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-03-04  9:56 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-03-02  8:41 [PATCH] app/compress-perf: fix number of QPs to setup Raja Zidane
2022-03-04  9:56 ` [EXT] " Akhil Goyal

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).