]> git.proxmox.com Git - mirror_frr.git/commit - lib/routemap.c
lib: Hash creation cleanup
authorDonald Sharp <sharpd@cumulusnetworks.com>
Sun, 3 Sep 2017 22:50:35 +0000 (18:50 -0400)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Tue, 5 Sep 2017 18:33:01 +0000 (14:33 -0400)
commitbd74dc610a2069f8549a26668940ef655f51598d
treec22aae3216f8c6ac50466ab8ce83fd58b7f9d77c
parentf24fdd9921b98f99d63b1299029d177954090243
lib: Hash creation cleanup

1) Some hash key functions where converting pointers
directly to a 32 bit value via downcasting.  Pointers
are 64 bit on a majority of our platforms.

2) Some hashes were being created with 256 entries,
downsize the hash creation size to more appropriate
values.

3) Add hash names to hash creation so we can watch
the hash via 'show debugging hashtable'

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
lib/command.c
lib/if_rmap.c
lib/qobj.c
lib/routemap.c
lib/thread.c