aboutsummaryrefslogtreecommitdiffstats
path: root/vnet/vnet/vxlan/vxlan.h
diff options
context:
space:
mode:
authorChris Luke <chrisy@flirble.org>2016-05-31 10:42:14 -0400
committerDave Wallace <dwallacelf@gmail.com>2016-06-01 19:55:56 +0000
commitc79491571fcdb3c77fc7c07c6ea247c14ba3e406 (patch)
tree01c8baea0bac5ceb00eb2ccca8c3ffdc2ace7d3f /vnet/vnet/vxlan/vxlan.h
parent9d6c0ab31158f78976a6ba614a5de09f05305a74 (diff)
VPP-98 Dedicated storage for VXLAN over IPv6 hash keys
When creating VXLAN over IPv6 the code was using storage for the hash key that could later be moved. Since the key is larger than the word size this was being referenced as a pointer; when the storage moves that breaks the hash. Instead allocate dedicated storage for the key. This patch also includes other minor cleanups, including using clib_memcpy in places it should be used and some whitespace fixes. Change-Id: I579f2cb515853ef56dedcca350fcad08aa6111a9 Signed-off-by: Chris Luke <chrisy@flirble.org>
Diffstat (limited to 'vnet/vnet/vxlan/vxlan.h')
-rw-r--r--vnet/vnet/vxlan/vxlan.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/vnet/vnet/vxlan/vxlan.h b/vnet/vnet/vxlan/vxlan.h
index 866d7ffd18f..1c70c75793a 100644
--- a/vnet/vnet/vxlan/vxlan.h
+++ b/vnet/vnet/vxlan/vxlan.h
@@ -84,8 +84,8 @@ typedef struct {
u32 sw_if_index;
union { /* storage for the hash key */
- vxlan4_tunnel_key_t key4;
- vxlan6_tunnel_key_t key6;
+ vxlan4_tunnel_key_t *key4;
+ vxlan6_tunnel_key_t *key6;
};
/* flags */