aboutsummaryrefslogtreecommitdiff
path: root/platform/linux-dpdk/odp_crypto.c
diff options
context:
space:
mode:
authorTim Liu <yliu@sonicwall.com>2021-04-23 17:55:41 +0800
committerMatias Elo <matias.elo@nokia.com>2021-04-27 11:38:53 +0300
commitb01bfb8b6a9485c50a048ce325e5a481240bbe6e (patch)
tree3aec1d2f05dc35a1138eb74ce918c2f39cdea4fb /platform/linux-dpdk/odp_crypto.c
parent00e7af389bd7ecd194ff90781c4560a05254f729 (diff)
linux-dpdk: crypto: reduce global memory size
Remove redundant memory size in crypto_global_t because the session size is added at alloc memory in _odp_crypto_init_global(). Signed-off-by: Tim Liu <yliu@sonicwall.com> Reviewed-by: Janne Peltonen <janne.peltonen@nokia.com>
Diffstat (limited to 'platform/linux-dpdk/odp_crypto.c')
-rw-r--r--platform/linux-dpdk/odp_crypto.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/platform/linux-dpdk/odp_crypto.c b/platform/linux-dpdk/odp_crypto.c
index d37dc40db..1ae54bb4a 100644
--- a/platform/linux-dpdk/odp_crypto.c
+++ b/platform/linux-dpdk/odp_crypto.c
@@ -78,12 +78,12 @@ typedef struct crypto_global_s {
uint8_t enabled_crypto_dev_ids[RTE_CRYPTO_MAX_DEVS];
uint16_t enabled_crypto_dev_qpairs[RTE_CRYPTO_MAX_DEVS];
odp_bool_t enabled_crypto_dev_qpairs_shared[RTE_CRYPTO_MAX_DEVS];
- crypto_session_entry_t *free;
- crypto_session_entry_t sessions[MAX_SESSIONS];
int is_crypto_dev_initialized;
struct rte_mempool *crypto_op_pool;
struct rte_mempool *session_mempool[RTE_MAX_NUMA_NODES];
odp_shm_t shm;
+ crypto_session_entry_t *free;
+ crypto_session_entry_t sessions[];
} crypto_global_t;
static crypto_global_t *global;