IPSEC: SPD counters in the stats sgement 88/17288/4
authorNeale Ranns <nranns@cisco.com>
Mon, 4 Feb 2019 09:10:30 +0000 (01:10 -0800)
committerDave Barach <openvpp@barachs.net>
Tue, 5 Feb 2019 14:59:44 +0000 (14:59 +0000)
commita09c1ff5b6ae535932b4fc9477ffc4e39748ca62
treee7162669c6224358f28e5614c782e2ba73a08e6c
parent3117ad8aa50afba68b2fa2c7f2b6f91eeb5a555e
IPSEC: SPD counters in the stats sgement

- return the stats_index of each SPD in the create API call
- no ip_any in the API as this creates 2 SPD entries. client must add both v4 and v6 explicitly
- only one pool of SPD entries (rhter than one per-SPD) to support this
- no packets/bytes in the dump API. Polling the stats segment is much more efficient
  (if the SA lifetime is based on packet/bytes)
- emit the policy index in the packet trace and CLI commands.

Change-Id: I7eaf52c9d0495fa24450facf55229941279b8569
Signed-off-by: Neale Ranns <nranns@cisco.com>
17 files changed:
src/vat/api_format.c
src/vnet/ipsec/ipsec.api
src/vnet/ipsec/ipsec.h
src/vnet/ipsec/ipsec_api.c
src/vnet/ipsec/ipsec_cli.c
src/vnet/ipsec/ipsec_format.c
src/vnet/ipsec/ipsec_input.c
src/vnet/ipsec/ipsec_output.c
src/vnet/ipsec/ipsec_sa.c
src/vnet/ipsec/ipsec_spd.c
src/vnet/ipsec/ipsec_spd.h
src/vnet/ipsec/ipsec_spd_policy.c
src/vnet/ipsec/ipsec_spd_policy.h
test/template_ipsec.py
test/test_ipsec_ah.py
test/test_ipsec_esp.py
test/vpp_ipsec.py