VPP-98 Dedicated storage for VXLAN over IPv6 hash keys 25/1325/3
authorChris Luke <chrisy@flirble.org>
Tue, 31 May 2016 14:42:14 +0000 (10:42 -0400)
committerDave Wallace <dwallacelf@gmail.com>
Wed, 1 Jun 2016 19:55:56 +0000 (19:55 +0000)
commitc79491571fcdb3c77fc7c07c6ea247c14ba3e406
tree01c8baea0bac5ceb00eb2ccca8c3ffdc2ace7d3f
parent9d6c0ab31158f78976a6ba614a5de09f05305a74
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>
vnet/vnet/vxlan/decap.c
vnet/vnet/vxlan/vxlan.c
vnet/vnet/vxlan/vxlan.h