]> git.proxmox.com Git - mirror_frr.git/commit - bgpd/bgp_community.c
bgpd: optimize loops on [e]community_hash_make()
authorJorge Boncompte [DTI2] <jorge@dti2.net>
Mon, 7 May 2012 16:52:55 +0000 (16:52 +0000)
committerDavid Lamparter <equinox@opensourcerouting.org>
Tue, 22 May 2012 18:25:44 +0000 (20:25 +0200)
commitc76275ee960c708408646d8a680b201b27cb9c1a
tree59daf9a650950d35aa5350270118cd94e4a1fde3
parent6d85b15bbb2fd3c263d5d4b402c88ff348af877b
bgpd: optimize loops on [e]community_hash_make()

  This change reduces loop count. Less jumps.

* bgp_community.c: One loop per community.
* bgp_ecommunity.c: One loop per ecommunity.

Signed-off-by: Jorge Boncompte [DTI2] <jorge@dti2.net>
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
bgpd/bgp_community.c
bgpd/bgp_ecommunity.c