From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by dpdk.org (Postfix) with ESMTP id 428B51C71A for ; Mon, 14 May 2018 08:49:40 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga107.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 13 May 2018 23:49:40 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.49,399,1520924400"; d="scan'208";a="54921715" Received: from unknown (HELO localhost.localdomain) ([10.224.122.195]) by fmsmga001.fm.intel.com with ESMTP; 13 May 2018 23:49:38 -0700 From: Abhinandan Gujjar To: jerin.jacob@caviumnetworks.com, thomas@monjalon.net, dev@dpdk.org Cc: pablo.de.lara.guarch@intel.com, abhinandan.gujjar@intel.com Date: Mon, 14 May 2018 12:20:22 +0530 Message-Id: <1526280622-50931-1-git-send-email-abhinandan.gujjar@intel.com> X-Mailer: git-send-email 1.9.1 Subject: [dpdk-dev] [PATCH] test: fix build with icc X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 May 2018 06:49:41 -0000 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 Signed-off-by: Abhinandan Gujjar --- 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