ipsec: Reference count the SAs 23/20623/2
authorNeale Ranns <nranns@cisco.com>
Fri, 12 Jul 2019 09:15:26 +0000 (09:15 +0000)
committerDave Barach <openvpp@barachs.net>
Fri, 12 Jul 2019 12:24:55 +0000 (12:24 +0000)
commit495d7ffbc82823edccabab960fc81a909f80075d
treed4244f743b7406bbdc4235e6accdfc4899a88b83
parentdef35a2352c9a54f748d301ffa47a446d25a83e0
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 <nranns@cisco.com>
src/plugins/unittest/ipsec_test.c
src/vnet/ipsec/ipsec_api.c
src/vnet/ipsec/ipsec_cli.c
src/vnet/ipsec/ipsec_format.c
src/vnet/ipsec/ipsec_if.c
src/vnet/ipsec/ipsec_sa.c
src/vnet/ipsec/ipsec_sa.h
src/vnet/ipsec/ipsec_spd_policy.c
src/vnet/ipsec/ipsec_tun.c
src/vnet/ipsec/ipsec_tun.h