vppinfra: optimize elog_string 83/20183/3
authorDave Barach <dave@barachs.net>
Mon, 17 Jun 2019 16:41:19 +0000 (12:41 -0400)
committerFlorin Coras <florin.coras@gmail.com>
Tue, 18 Jun 2019 02:09:57 +0000 (02:09 +0000)
commitb777d788d9dd578620abc99d00e41eae3d3239c2
treecf3197987b66167c5de556ed17a0756995208078
parent900dfd33819332a7e0e2b31ff9b30f6cf574b9a8
vppinfra: optimize elog_string

Add a string hash to make sure that strings in the string table are
unique. This optimization has been coded piecemeal in multiple places,
we should have made the underlying function do the work years ago.

Ticket: VPP-1707
Type: fix

Change-Id: I5010fd4926b9b80ce3a168748f6de64e333ef498
Signed-off-by: Dave Barach <dave@barachs.net>
src/vppinfra/elog.c
src/vppinfra/elog.h