]> git.puffer.fish Git - mirror/frr.git/commitdiff
nhrpd: Add hash table names 1099/head
authorDonald Sharp <sharpd@cumulusnetworks.com>
Sun, 3 Sep 2017 23:12:15 +0000 (19:12 -0400)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Tue, 5 Sep 2017 18:33:06 +0000 (14:33 -0400)
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
nhrpd/nhrp_cache.c
nhrpd/nhrp_peer.c
nhrpd/nhrp_vc.c
nhrpd/reqid.c

index 3ebdbf27ba9e5b2418a2377ba3ef4ee670464aeb..3ff1a342dc5983adb52950215fdd94f50c5e4099 100644 (file)
@@ -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;
        }
index 4ee9afbd54f056986a4d1d95cda6e3850c4897b1..2bcddc080165508018a85c41e159cc07a5b44a84 100644 (file)
@@ -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;
        }
 
index a5547a7a7e6b22572b4aeb52e781dd721f4021e2..d0915bc7a380cd4f724b8575c246706979af4bb5 100644 (file)
@@ -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]);
 }
index 61fbfd7795d663454c94099287393df5bc98b89e..e5bd45a8f4636e1d5f6b2c8c6471f4c11eddb85d 100644 (file)
@@ -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;
        }