aboutsummaryrefslogtreecommitdiffstats
path: root/src/vnet
diff options
context:
space:
mode:
authorDamjan Marion <damarion@cisco.com>2018-03-21 22:27:46 +0100
committerChris Luke <chris_luke@comcast.com>2018-03-21 23:12:29 +0000
commit7b0b9612eebd0cd5c25f1c4e032638b16f1ee39b (patch)
tree826ed8c4c7886ae05e66929999e8f87cd4f9165e /src/vnet
parent378ac0533e5ac8c3121d8f66ba61a8548e55282f (diff)
udp: make udp encap pool cacheline aligned
This fixes issue with unaligned vector access on gcc-7. As udp_encap_t is declared as cacheline aligned, alloc also need to be. Change-Id: Ic30876911baf2c22c135097490075fa7bcf0ca18 Signed-off-by: Damjan Marion <damarion@cisco.com>
Diffstat (limited to 'src/vnet')
-rw-r--r--src/vnet/udp/udp_encap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vnet/udp/udp_encap.c b/src/vnet/udp/udp_encap.c
index 8005fa57e70..4b4d5412ca7 100644
--- a/src/vnet/udp/udp_encap.c
+++ b/src/vnet/udp/udp_encap.c
@@ -81,7 +81,7 @@ udp_encap_add_and_lock (u32 id,
{
u8 pfx_len = 0;
- pool_get (udp_encap_pool, ue);
+ pool_get_aligned (udp_encap_pool, ue, CLIB_CACHE_LINE_BYTES);
uei = ue - udp_encap_pool;
vlib_validate_combined_counter (&(udp_encap_counters), uei);