From: Donald Sharp Date: Sun, 3 Sep 2017 23:12:15 +0000 (-0400) Subject: nhrpd: Add hash table names X-Git-Tag: frr-4.0-dev~331^2 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=8462c0ff42a966c4659a3ae020042c5ee9f8d619;p=mirror%2Ffrr.git nhrpd: Add hash table names Signed-off-by: Donald Sharp --- diff --git a/nhrpd/nhrp_cache.c b/nhrpd/nhrp_cache.c index 3ebdbf27ba..3ff1a342dc 100644 --- a/nhrpd/nhrp_cache.c +++ b/nhrpd/nhrp_cache.c @@ -81,7 +81,9 @@ struct nhrp_cache *nhrp_cache_get(struct interface *ifp, union sockunion *remote struct nhrp_cache key; if (!nifp->cache_hash) { - nifp->cache_hash = hash_create(nhrp_cache_protocol_key, nhrp_cache_protocol_cmp, NULL); + nifp->cache_hash = hash_create(nhrp_cache_protocol_key, + nhrp_cache_protocol_cmp, + "NHRP Cache"); if (!nifp->cache_hash) return NULL; } diff --git a/nhrpd/nhrp_peer.c b/nhrpd/nhrp_peer.c index 4ee9afbd54..2bcddc0801 100644 --- a/nhrpd/nhrp_peer.c +++ b/nhrpd/nhrp_peer.c @@ -182,7 +182,9 @@ struct nhrp_peer *nhrp_peer_get(struct interface *ifp, const union sockunion *re struct nhrp_vc *vc; if (!nifp->peer_hash) { - nifp->peer_hash = hash_create(nhrp_peer_key, nhrp_peer_cmp, NULL); + nifp->peer_hash = hash_create(nhrp_peer_key, + nhrp_peer_cmp, + "NHRP Peer Hash"); if (!nifp->peer_hash) return NULL; } diff --git a/nhrpd/nhrp_vc.c b/nhrpd/nhrp_vc.c index a5547a7a7e..d0915bc7a3 100644 --- a/nhrpd/nhrp_vc.c +++ b/nhrpd/nhrp_vc.c @@ -196,7 +196,9 @@ void nhrp_vc_init(void) { size_t i; - nhrp_vc_hash = hash_create(nhrp_vc_key, nhrp_vc_cmp, NULL); + nhrp_vc_hash = hash_create(nhrp_vc_key, + nhrp_vc_cmp, + "NHRP VC hash"); for (i = 0; i < ZEBRA_NUM_OF(childlist_head); i++) list_init(&childlist_head[i]); } diff --git a/nhrpd/reqid.c b/nhrpd/reqid.c index 61fbfd7795..e5bd45a8f4 100644 --- a/nhrpd/reqid.c +++ b/nhrpd/reqid.c @@ -17,7 +17,9 @@ static int nhrp_reqid_cmp(const void *data, const void *key) uint32_t nhrp_reqid_alloc(struct nhrp_reqid_pool *p, struct nhrp_reqid *r, void (*cb)(struct nhrp_reqid *, void *)) { if (!p->reqid_hash) { - p->reqid_hash = hash_create(nhrp_reqid_key, nhrp_reqid_cmp, NULL); + p->reqid_hash = hash_create(nhrp_reqid_key, + nhrp_reqid_cmp, + "NHRP reqid Hash"); p->next_request_id = 1; }