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: 3c2c535ecf
("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>
This commit is contained in:
parent
3b97888ab2
commit
a68bc62fd1
@ -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 @@ configure_cryptodev(void)
|
||||
|
||||
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,
|
||||
|
Loading…
Reference in New Issue
Block a user