All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] test: fix build with icc
@ 2018-05-14  6:50 Abhinandan Gujjar
  2018-05-14  8:13 ` De Lara Guarch, Pablo
  0 siblings, 1 reply; 3+ messages in thread
From: Abhinandan Gujjar @ 2018-05-14  6:50 UTC (permalink / raw)
  To: jerin.jacob, thomas, dev; +Cc: pablo.de.lara.guarch, abhinandan.gujjar

This patch provides fix for icc compilation issue with event
crypto adapter test application.
Currently, number of elements in the session mempool is defined
by max_nb_sessions & this is replaced with a macro.

Fixes: 3c2c535ecfc0 ("test: add event crypto adapter auto-test")

Reported-by: Pablo de Lara <pablo.de.lara.guarch@intel.com>
Signed-off-by: Abhinandan Gujjar <abhinandan.gujjar@intel.com>
---
 test/test/test_event_crypto_adapter.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/test/test/test_event_crypto_adapter.c b/test/test/test_event_crypto_adapter.c
index 17eae5d..6f0e794 100644
--- a/test/test/test_event_crypto_adapter.c
+++ b/test/test/test_event_crypto_adapter.c
@@ -21,6 +21,7 @@
 #define MBUF_CACHE_SIZE           (256)
 #define MAXIMUM_IV_LENGTH         (16)
 #define DEFAULT_NUM_OPS_INFLIGHT  (128)
+#define MAX_NB_SESSIONS            4
 #define TEST_APP_PORT_ID           0
 #define TEST_APP_EV_QUEUE_ID       0
 #define TEST_APP_EV_PRIORITY       0
@@ -527,7 +528,7 @@ struct rte_event_crypto_request request_info = {
 
 	params.session_mpool = rte_mempool_create(
 				"CRYPTO_ADAPTER_SESSION_MP",
-				info.sym.max_nb_sessions * 2,
+				MAX_NB_SESSIONS * 2,
 				session_size,
 				0, 0, NULL, NULL, NULL,
 				NULL, SOCKET_ID_ANY,
-- 
1.9.1

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

* Re: [PATCH] test: fix build with icc
  2018-05-14  6:50 [PATCH] test: fix build with icc Abhinandan Gujjar
@ 2018-05-14  8:13 ` De Lara Guarch, Pablo
  2018-05-14  9:21   ` Thomas Monjalon
  0 siblings, 1 reply; 3+ messages in thread
From: De Lara Guarch, Pablo @ 2018-05-14  8:13 UTC (permalink / raw)
  To: Gujjar, Abhinandan S, jerin.jacob, thomas, dev



> -----Original Message-----
> From: Gujjar, Abhinandan S
> Sent: Monday, May 14, 2018 7:50 AM
> To: jerin.jacob@caviumnetworks.com; thomas@monjalon.net; dev@dpdk.org
> Cc: De Lara Guarch, Pablo <pablo.de.lara.guarch@intel.com>; Gujjar,
> Abhinandan S <abhinandan.gujjar@intel.com>
> Subject: [PATCH] test: fix build with icc
> 
> This patch provides fix for icc compilation issue with event crypto adapter test
> application.
> Currently, number of elements in the session mempool is defined by
> max_nb_sessions & this is replaced with a macro.
> 
> Fixes: 3c2c535ecfc0 ("test: add event crypto adapter auto-test")
> 
> Reported-by: Pablo de Lara <pablo.de.lara.guarch@intel.com>
> Signed-off-by: Abhinandan Gujjar <abhinandan.gujjar@intel.com>

Acked-by: Pablo de Lara <pablo.de.lara.guarch@intel.com>

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

* Re: [PATCH] test: fix build with icc
  2018-05-14  8:13 ` De Lara Guarch, Pablo
@ 2018-05-14  9:21   ` Thomas Monjalon
  0 siblings, 0 replies; 3+ messages in thread
From: Thomas Monjalon @ 2018-05-14  9:21 UTC (permalink / raw)
  To: Gujjar, Abhinandan S; +Cc: dev, De Lara Guarch, Pablo, jerin.jacob

> > This patch provides fix for icc compilation issue with event crypto adapter test
> > application.
> > Currently, number of elements in the session mempool is defined by
> > max_nb_sessions & this is replaced with a macro.
> > 
> > Fixes: 3c2c535ecfc0 ("test: add event crypto adapter auto-test")
> > 
> > Reported-by: Pablo de Lara <pablo.de.lara.guarch@intel.com>
> > Signed-off-by: Abhinandan Gujjar <abhinandan.gujjar@intel.com>
> 
> Acked-by: Pablo de Lara <pablo.de.lara.guarch@intel.com>

Applied, thanks

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

end of thread, other threads:[~2018-05-14  9:21 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-05-14  6:50 [PATCH] test: fix build with icc Abhinandan Gujjar
2018-05-14  8:13 ` De Lara Guarch, Pablo
2018-05-14  9:21   ` Thomas Monjalon

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.