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/public_inlines.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/public_inlines.h')
-rw-r--r-- | src/plugins/acl/public_inlines.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/acl/public_inlines.h b/src/plugins/acl/public_inlines.h index 6b464b36b7a..6d8f0ddb125 100644 --- a/src/plugins/acl/public_inlines.h +++ b/src/plugins/acl/public_inlines.h @@ -208,8 +208,8 @@ acl_fill_5tuple (acl_main_t * am, vlib_buffer_t * b0, int is_ip6, /* key[0..3] contains src/dst address and is cleared/set below */ /* Remainder of the key and per-packet non-key data */ - p5tuple_pkt->kv.key[4] = 0; - p5tuple_pkt->kv.value = 0; + p5tuple_pkt->kv_40_8.key[4] = 0; + p5tuple_pkt->kv_40_8.value = 0; p5tuple_pkt->pkt.is_ip6 = is_ip6; if (is_ip6) |