summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2017-09-03 19:12:15 -0400
committerDonald Sharp <sharpd@cumulusnetworks.com>2017-09-05 14:33:06 -0400
commit8462c0ff42a966c4659a3ae020042c5ee9f8d619 (patch)
tree33abbfb5728baf5bd845fce40e9ffcdef094e56b
parent3f65c5b1f7db20c1ee3ab723483f294975ce2f94 (diff)
nhrpd: Add hash table names
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
-rw-r--r--nhrpd/nhrp_cache.c4
-rw-r--r--nhrpd/nhrp_peer.c4
-rw-r--r--nhrpd/nhrp_vc.c4
-rw-r--r--nhrpd/reqid.c4
4 files changed, 12 insertions, 4 deletions
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;
}