Unify and cleanup usage of hash_set/unset_mem by various tunnels 53/9953/3
authorJohn Lo <loj@cisco.com>
Thu, 4 Jan 2018 21:39:42 +0000 (16:39 -0500)
committerDave Barach <openvpp@barachs.net>
Fri, 5 Jan 2018 16:50:02 +0000 (16:50 +0000)
commite6bfeab1c352ae73a19361c038e2a06a58c035db
tree73cbf094b56164047e993d9641cbf81ee4eaeae2
parentcba6936c45bc3265ae695e8266bdefc65e7a5116
Unify and cleanup usage of hash_set/unset_mem by various tunnels

Move the functions hash_set_key_copy() and hash_unset_key_free()
which are dupilicated in various tunnel support code modules to
hash.h as hash_set_mem_alloc() and hash_unset_mem_free() to be
used by all.

Change-Id: I40723cabe29072ab7feb1804c221f28606d8e4fe
Signed-off-by: John Lo <loj@cisco.com>
src/plugins/gtpu/gtpu.c
src/vnet/geneve/geneve.c
src/vnet/vxlan-gpe/vxlan_gpe.c
src/vnet/vxlan/vxlan.c
src/vppinfra/hash.h