VPP-98 Dedicated storage for VXLAN over IPv6 hash keys 26/1326/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:53:54 +0000 (19:53 +0000)
commit966bef4ad1d8dec81299758eec70b69cc2030c2c
tree86ea1d64d45de38edd5ea07ba1faed09e6c6dc7f
parentdb0cf7963b971ebb393d105a0a29fa7bd926521c
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