ipsec: remove redundant policy array in fast path spd 16/37516/3
authorPiotr Bronowski <piotrx.bronowski@intel.com>
Sun, 9 Oct 2022 23:05:00 +0000 (23:05 +0000)
committerDave Wallace <dwallacelf@gmail.com>
Mon, 28 Nov 2022 21:20:28 +0000 (21:20 +0000)
commit14bf6a8fb03545b587d99e9db36871cc62b5729d
treef8b2ada034fe4724f57efa1cc048dfd2e35275fc
parent797562c86066411c29116cc099864f12c98561d9
ipsec: remove redundant policy array in fast path spd

Fast path spd was explicitely storing array of policy id vectors.
This information was redundand, as this inofrmation is already stored
in bihash table. This additional array was affecting performance
when adding and removing fast path policies.
The other place that needed refactoring after removing this array  was
cli command showing fast path policies.

Type: feature

Signed-off-by: Piotr Bronowski <piotrx.bronowski@intel.com>
Change-Id: I78d45653f71539e7ba90ff5d2834451f83ead4be
src/vnet/ipsec/ipsec_format.c
src/vnet/ipsec/ipsec_spd.h
src/vnet/ipsec/ipsec_spd_policy.c