From 495d7ffbc82823edccabab960fc81a909f80075d Mon Sep 17 00:00:00 2001 From: Neale Ranns Date: Fri, 12 Jul 2019 09:15:26 +0000 Subject: ipsec: Reference count the SAs - this remove the need to iterate through all state when deleting an SA - and ensures that if the SA is deleted by the client is remains for use in any state until that state is also removed. Type: feature Change-Id: I438cb67588cb65c701e49a7a9518f88641925419 Signed-off-by: Neale Ranns --- src/vnet/ipsec/ipsec_tun.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/vnet/ipsec/ipsec_tun.h') diff --git a/src/vnet/ipsec/ipsec_tun.h b/src/vnet/ipsec/ipsec_tun.h index be5cef9a8fc..2041cbe758b 100644 --- a/src/vnet/ipsec/ipsec_tun.h +++ b/src/vnet/ipsec/ipsec_tun.h @@ -32,12 +32,12 @@ typedef struct ipsec_ep_t_ typedef struct ipsec_tun_protect_t_ { CLIB_CACHE_LINE_ALIGN_MARK (cacheline0); - u32 itp_out_sa; + index_t itp_out_sa; /* not using a vector since we want the memory inline * with this struct */ u32 itp_n_sa_in; - u32 itp_in_sas[4]; + index_t itp_in_sas[4]; u32 itp_sw_if_index; -- cgit 1.2.3-korg