vppinfra: optimize elog_string 84/20184/1
authorDave Barach <[email protected]>
Mon, 17 Jun 2019 16:41:19 +0000 (12:41 -0400)
committerDave Barach <[email protected]>
Mon, 17 Jun 2019 16:43:32 +0000 (16:43 +0000)
commit33052bfd8c95054aceba4ec0d23c8cda9108644b
tree2ff14ad9889f9e4a0a2eb436397c0b4481746982
parent4221c8de596f3f3f66b4cbb36ad2d0c23486030c
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 <[email protected]>
src/vppinfra/elog.c
src/vppinfra/elog.h