DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] [PATCH] app/crypto-perf: fix mempool create call failure
@ 2018-07-16 11:14 Radu Nicolau
  2018-07-16 11:39 ` Akhil Goyal
  0 siblings, 1 reply; 3+ messages in thread
From: Radu Nicolau @ 2018-07-16 11:14 UTC (permalink / raw)
  To: dev; +Cc: pablo.de.lara.guarch, akhil.goyal, Radu Nicolau, stable

Using a small number of sessions results in rte_mempool_create call
with cache_size > n, which fails. There is no need to cache the elements,
as there is no performance impact.

Fixes: 501c0a3b14c3 ("app/crypto-perf: limit number of sessions")
Cc: stable@dpdk.org

Signed-off-by: Radu Nicolau <radu.nicolau@intel.com>
---
 app/test-crypto-perf/main.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/app/test-crypto-perf/main.c b/app/test-crypto-perf/main.c
index 34873af..5c7dadb 100644
--- a/app/test-crypto-perf/main.c
+++ b/app/test-crypto-perf/main.c
@@ -21,7 +21,6 @@
 #include "cperf_test_verify.h"
 #include "cperf_test_pmd_cyclecount.h"
 
-#define SESS_MEMPOOL_CACHE_SIZE 64
 
 const char *cperf_test_type_strs[] = {
 	[CPERF_TEST_TYPE_THROUGHPUT] = "throughput",
@@ -204,7 +203,7 @@ cperf_initialize_cryptodev(struct cperf_options *opts, uint8_t *enabled_cdevs,
 			sess_mp = rte_mempool_create(mp_name,
 						sessions_needed,
 						max_sess_size,
-						SESS_MEMPOOL_CACHE_SIZE,
+						0,
 						0, NULL, NULL, NULL,
 						NULL, socket_id,
 						0);
-- 
2.7.5

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

* Re: [dpdk-dev] [PATCH] app/crypto-perf: fix mempool create call failure
  2018-07-16 11:14 [dpdk-dev] [PATCH] app/crypto-perf: fix mempool create call failure Radu Nicolau
@ 2018-07-16 11:39 ` Akhil Goyal
  2018-07-16 14:13   ` De Lara Guarch, Pablo
  0 siblings, 1 reply; 3+ messages in thread
From: Akhil Goyal @ 2018-07-16 11:39 UTC (permalink / raw)
  To: Radu Nicolau, dev; +Cc: pablo.de.lara.guarch, stable

On 7/16/2018 4:44 PM, Radu Nicolau wrote:

> Using a small number of sessions results in rte_mempool_create call
> with cache_size > n, which fails. There is no need to cache the elements,
> as there is no performance impact.
>
> Fixes: 501c0a3b14c3 ("app/crypto-perf: limit number of sessions")
> Cc: stable@dpdk.org
>
> Signed-off-by: Radu Nicolau <radu.nicolau@intel.com>
> ---

This patch should not be for stable. As the patch which introduced this issue is still not released.

Acked-by: Akhil Goyal <akhil.goyal@nxp.com>

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

* Re: [dpdk-dev] [PATCH] app/crypto-perf: fix mempool create call failure
  2018-07-16 11:39 ` Akhil Goyal
@ 2018-07-16 14:13   ` De Lara Guarch, Pablo
  0 siblings, 0 replies; 3+ messages in thread
From: De Lara Guarch, Pablo @ 2018-07-16 14:13 UTC (permalink / raw)
  To: Akhil Goyal, Nicolau, Radu, dev; +Cc: stable



> -----Original Message-----
> From: Akhil Goyal [mailto:akhil.goyal@nxp.com]
> Sent: Monday, July 16, 2018 12:40 PM
> To: Nicolau, Radu <radu.nicolau@intel.com>; dev@dpdk.org
> Cc: De Lara Guarch, Pablo <pablo.de.lara.guarch@intel.com>; stable@dpdk.org
> Subject: Re: [dpdk-dev] [PATCH] app/crypto-perf: fix mempool create call failure
> 
> On 7/16/2018 4:44 PM, Radu Nicolau wrote:
> 
> > Using a small number of sessions results in rte_mempool_create call
> > with cache_size > n, which fails. There is no need to cache the
> > elements, as there is no performance impact.
> >
> > Fixes: 501c0a3b14c3 ("app/crypto-perf: limit number of sessions")
> > Cc: stable@dpdk.org
> >
> > Signed-off-by: Radu Nicolau <radu.nicolau@intel.com>
> > ---
> 
> This patch should not be for stable. As the patch which introduced this issue is
> still not released.
> 
> Acked-by: Akhil Goyal <akhil.goyal@nxp.com>
> 

Applied to dpdk-next-crypto, removing the Cc stable line.

Thanks,
Pablo


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

end of thread, other threads:[~2018-07-16 14:13 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-07-16 11:14 [dpdk-dev] [PATCH] app/crypto-perf: fix mempool create call failure Radu Nicolau
2018-07-16 11:39 ` Akhil Goyal
2018-07-16 14:13   ` De Lara Guarch, Pablo

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).