Unify/cleanup usage of hash_set/unset_mem by tunnels (VPP-1117) 61/9961/4
authorJohn Lo <loj@cisco.com>
Thu, 4 Jan 2018 21:39:42 +0000 (16:39 -0500)
committerDave Barach <openvpp@barachs.net>
Sat, 6 Jan 2018 17:34:04 +0000 (17:34 +0000)
commit848b47c70ecfb0bb45636c5c806391848e2878f9
treeff75e417d66930a74aab4346e4a24aa08029ccf4
parent72247c803250894834d15952a6fddcd8f4a39a9c
Unify/cleanup usage of hash_set/unset_mem by tunnels (VPP-1117)

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>
(cherry picked from commit e6bfeab1c352ae73a19361c038e2a06a58c035db)
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