diff options
| author | Donald Sharp <sharpd@cumulusnetworks.com> | 2017-09-03 18:57:30 -0400 | 
|---|---|---|
| committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2017-09-05 14:33:06 -0400 | 
| commit | 3f65c5b1f7db20c1ee3ab723483f294975ce2f94 (patch) | |
| tree | 298e5547fd5d36b177e2d3eb31a4ff88d76a158c /bgpd/bgp_advertise.c | |
| parent | 0f66d7d1e6ae5ef3f0679246f4eefbb42f9188f7 (diff) | |
bgpd: Add various hash optimizations
1) Add hash names to all hash_create calls
2) Fix community_hash, ecommunity_hash and lcommunity_hash key
creation
3) Fix output of community and lcommunity iterators( why would
we want to see the memory location of the backet? ).
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'bgpd/bgp_advertise.c')
| -rw-r--r-- | bgpd/bgp_advertise.c | 4 | 
1 files changed, 3 insertions, 1 deletions
diff --git a/bgpd/bgp_advertise.c b/bgpd/bgp_advertise.c index c7c9631512..a7f72974ca 100644 --- a/bgpd/bgp_advertise.c +++ b/bgpd/bgp_advertise.c @@ -246,7 +246,9 @@ void bgp_sync_init(struct peer *peer)  			BGP_ADV_FIFO_INIT(&sync->withdraw_low);  			peer->sync[afi][safi] = sync;  			peer->hash[afi][safi] = -				hash_create(baa_hash_key, baa_hash_cmp, NULL); +				hash_create(baa_hash_key, +					    baa_hash_cmp, +					    "BGP Sync Hash");  		}  }  | 
