diff options
author | Piotr Bronowski <piotrx.bronowski@intel.com> | 2022-09-20 14:44:36 +0000 |
---|---|---|
committer | Fan Zhang <royzhang1980@hotmail.com> | 2022-09-21 15:11:54 +0000 |
commit | 06abf235269558fe75d72019a437337b24d7199e (patch) | |
tree | f1827b0781e2821e5ceed55117f21afa428180b2 /src/vnet/ipsec/ipsec_spd.c | |
parent | a2a7a4031be4896529cce591c26e8cebe8ca22ec (diff) |
ipsec: introduce fast path ipv6 inbound matching
This patch introduces fast path matching for inbound traffic ipv6.
Fast path uses bihash tables in order to find matching policy.
Adding and removing policies in fast path is much faster than in current
implementation. It is still new feature and further work needs
and can be done in order to improve the perfromance.
Type: feature
Change-Id: Iaef6638033666ad6eb028ffe0c8a4f4374451753
Signed-off-by: Piotr Bronowski <piotrx.bronowski@intel.com>
Diffstat (limited to 'src/vnet/ipsec/ipsec_spd.c')
-rw-r--r-- | src/vnet/ipsec/ipsec_spd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vnet/ipsec/ipsec_spd.c b/src/vnet/ipsec/ipsec_spd.c index aa42f99bee2..5d5d521dd72 100644 --- a/src/vnet/ipsec/ipsec_spd.c +++ b/src/vnet/ipsec/ipsec_spd.c @@ -189,7 +189,7 @@ ipsec_add_del_spd (vlib_main_t * vm, u32 spd_id, int is_add) fp_spd->name6_in = format (0, "spd_%u_fp_ip6_in", spd_id); pool_get (im->fp_ip6_lookup_hashes_pool, bihash_table); - fp_spd->ip6_out_lookup_hash_idx = + fp_spd->ip6_in_lookup_hash_idx = bihash_table - im->fp_ip6_lookup_hashes_pool; clib_bihash_init_40_8 (bihash_table, (char *) fp_spd->name6_in, im->fp_lookup_hash_buckets, |