diff options
author | Andrew Yourtchenko <ayourtch@gmail.com> | 2018-06-13 16:10:35 +0200 |
---|---|---|
committer | Florin Coras <florin.coras@gmail.com> | 2018-06-14 04:46:41 +0000 |
commit | aa2f59bbd356c1165745703cfddb5ccd21e887eb (patch) | |
tree | 55e5cda15c0a563e903f2987a07d6db4eb9402b7 /src/plugins/acl/acl.h | |
parent | 3eec2d275921b10ce7dcbb90bc7c17b43ccd2366 (diff) |
acl-plugin: use 16_8 bihash for IPv4 sessions and 40_8 bihash for IPv6 sessions
Add a new kv_16_8 field into 5tuple union, rename
the existing kv into kv_40_8 for clarity, and
add the compile-time alignment constraints.
Change-Id: I9bfca91f34850a5c89cba590fbfe9b865e63ef94
Signed-off-by: Andrew Yourtchenko <ayourtch@gmail.com>
Diffstat (limited to 'src/plugins/acl/acl.h')
-rw-r--r-- | src/plugins/acl/acl.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/plugins/acl/acl.h b/src/plugins/acl/acl.h index 0c0a6db5af7..9d333da4059 100644 --- a/src/plugins/acl/acl.h +++ b/src/plugins/acl/acl.h @@ -26,6 +26,7 @@ #include <vppinfra/elog.h> #include <vppinfra/bihash_48_8.h> #include <vppinfra/bihash_40_8.h> +#include <vppinfra/bihash_16_8.h> #include "fa_node.h" #include "hash_lookup_types.h" @@ -246,7 +247,8 @@ typedef struct { uword *fa_out_acl_on_sw_if_index; /* bihash holding all of the sessions */ int fa_sessions_hash_is_initialized; - clib_bihash_40_8_t fa_sessions_hash; + clib_bihash_40_8_t fa_ip6_sessions_hash; + clib_bihash_16_8_t fa_ip4_sessions_hash; /* The process node which orcherstrates the cleanup */ u32 fa_cleaner_node_index; /* FA session timeouts, in seconds */ |