IPSEC: move SA counters into the stats segment 31/17631/2
authorNeale Ranns <nranns@cisco.com>
Sun, 17 Feb 2019 18:04:27 +0000 (18:04 +0000)
committerDamjan Marion <dmarion@me.com>
Mon, 18 Feb 2019 13:05:17 +0000 (13:05 +0000)
commiteba31ecebed1a7d168da17194cab7a8955761f2b
treefe640b26f9dc98d7aaf5ff0ade2d643a1b86cbbe
parent684586786e98bc779e269c0d879a2a4d3f1f4bce
IPSEC: move SA counters into the stats segment

1) stats are accessed via the stat segment which is more condusive to
   monitoring
2) stats are accurate in the presence of multiple threads. There's no
   guarantee that an SA is access from only one worker.

Change-Id: Id5e217ea253ddfc9480aaedb0d008dea031b1148
Signed-off-by: Neale Ranns <nranns@cisco.com>
18 files changed:
src/plugins/dpdk/ipsec/esp_decrypt.c
src/plugins/dpdk/ipsec/esp_encrypt.c
src/vat/api_format.c
src/vnet/ipsec/ah_decrypt.c
src/vnet/ipsec/ah_encrypt.c
src/vnet/ipsec/esp_decrypt.c
src/vnet/ipsec/esp_encrypt.c
src/vnet/ipsec/ikev2.c
src/vnet/ipsec/ipsec.api
src/vnet/ipsec/ipsec_api.c
src/vnet/ipsec/ipsec_cli.c
src/vnet/ipsec/ipsec_format.c
src/vnet/ipsec/ipsec_sa.c
src/vnet/ipsec/ipsec_sa.h
test/template_ipsec.py
test/test_ipsec_ah.py
test/test_ipsec_esp.py
test/vpp_ipsec.py