]> git.proxmox.com Git - mirror_frr.git/commit - bgpd/bgp_route.c
bgpd: Further refine hash lookup to store hash value
authorDonald Sharp <sharpd@cumulusnetworks.com>
Wed, 9 Jan 2019 01:23:11 +0000 (20:23 -0500)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Wed, 9 Jan 2019 01:24:13 +0000 (20:24 -0500)
commite237b0d211770d2e71c0a3ff73b4842f17df9019
tree08f2fc09d1acf8ead4e5d8910864931f1c819b40
parent3571a6a226768c3fa125219898dd2c07291599c8
bgpd: Further refine hash lookup to store hash value

Further refine the previous commit to store the hash value in
both the `struct community_list` as well as the `struct rmap_community`
structures.  This allows us to know a priori what our hash value
is.  This change cuts another couple of seconds of convergence
off to ~55 seconds and further reduces cpu load of bgp:

   16      40061.706    433732       92    330102      129   1242965 RWTEX TOTAL

Down from ~43 seconds previously.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
bgpd/bgp_clist.c
bgpd/bgp_clist.h
bgpd/bgp_route.c
bgpd/bgp_routemap.c
bgpd/bgp_vty.c