]> git.proxmox.com Git - mirror_frr.git/blobdiff - bgpd/bgp_nexthop.c
bgpd: Add various hash optimizations
[mirror_frr.git] / bgpd / bgp_nexthop.c
index b7d7cd9fa308cd10de32ab2ef7009dbfba92b91b..1200d74d6a59246846d800928bda511c66770993 100644 (file)
@@ -122,8 +122,9 @@ static int bgp_tip_hash_cmp(const void *p1, const void *p2)
 
 void bgp_tip_hash_init(struct bgp *bgp)
 {
-       bgp->tip_hash =
-               hash_create(bgp_tip_hash_key_make, bgp_tip_hash_cmp, NULL);
+       bgp->tip_hash = hash_create(bgp_tip_hash_key_make,
+                                   bgp_tip_hash_cmp,
+                                   "BGP TIP hash");
 }
 
 void bgp_tip_hash_destroy(struct bgp *bgp)
@@ -204,7 +205,8 @@ static int bgp_address_hash_cmp(const void *p1, const void *p2)
 void bgp_address_init(struct bgp *bgp)
 {
        bgp->address_hash = hash_create(bgp_address_hash_key_make,
-                                       bgp_address_hash_cmp, NULL);
+                                       bgp_address_hash_cmp,
+                                       "BGP Address Hash");
 }
 
 void bgp_address_destroy(struct bgp *bgp)