From 5ae793ac4e5b3fa288ed5838d8d92ce15eb950bd Mon Sep 17 00:00:00 2001 From: Neale Ranns Date: Wed, 3 Apr 2019 13:36:56 +0000 Subject: IPSEC: correctly size per-thread data Change-Id: Idfc05cd0e09b50a26eaf747b7c49f720b009159a Signed-off-by: Neale Ranns --- src/vnet/ipsec/ipsec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vnet/ipsec/ipsec.c b/src/vnet/ipsec/ipsec.c index 92210493e78..522b9589972 100644 --- a/src/vnet/ipsec/ipsec.c +++ b/src/vnet/ipsec/ipsec.c @@ -316,7 +316,7 @@ ipsec_init (vlib_main_t * vm) i->op_type = VNET_CRYPTO_OP_SHA512_HMAC; i->trunc_size = 32; - vec_validate_aligned (im->ptd, vec_len (vlib_mains), CLIB_CACHE_LINE_BYTES); + vec_validate_aligned (im->ptd, vlib_num_workers (), CLIB_CACHE_LINE_BYTES); return 0; } -- cgit 1.2.3-korg