ipsec: increment SPD policy counters for bypass and discard actions in ipsec4_input_node 11/32611/3
authorZachary Leaf <zachary.leaf@arm.com>
Mon, 7 Jun 2021 08:01:07 +0000 (03:01 -0500)
committerNeale Ranns <neale@graphiant.com>
Tue, 29 Jun 2021 14:52:41 +0000 (14:52 +0000)
commitfbab65bc1c186a3029804e32e678c0fe7f823f8e
tree529284dd5aba361b33e3e51be27afa47b618f6b5
parentb940fd4d5a16b62a5aa09b924140a135fd06c6bb
ipsec: increment SPD policy counters for bypass and discard actions in ipsec4_input_node

ipsec_spd_policy_counters are incremented only for matched inbound
PROTECT actions (:273 and :370). BYPASS + DISCARD actions also have
SPD policy counters that should be incremented on match.

This fix increments the counters for inbound BYPASS and DISCARD actions.

Type: fix
Signed-off-by: Zachary Leaf <zachary.leaf@arm.com>
Change-Id: Iac3c6d344be25ba5326e1ed45115ca299dee5f49
src/vnet/ipsec/ipsec_input.c