summaryrefslogtreecommitdiffstats
path: root/bgpd/bgp_ecommunity.c
diff options
context:
space:
mode:
authorNaveen Thanikachalam <nthanikachal@vmware.com>2019-08-11 13:24:15 +0200
committerNaveen Thanikachalam <nthanikachal@vmware.com>2019-08-12 09:51:46 +0200
commit47c8fa1f875ed1c8e2907c9ffe9c25ab69436ca1 (patch)
tree397a4c73530d68850de0da36a0a8eaa89e2f5e57 /bgpd/bgp_ecommunity.c
parentMerge pull request #4803 from ddutt/master (diff)
downloadfrr-47c8fa1f875ed1c8e2907c9ffe9c25ab69436ca1.tar.xz
frr-47c8fa1f875ed1c8e2907c9ffe9c25ab69436ca1.zip
bgpd: Optimizing route-map's processing of dependencies.
Say for eg., 256 prefix-list entries are pasted to VTYSH. This results in BGP processing the events for several minutes. BGPD starts a timer for 5 seconds when the first dependency configuraion is received. On timer expiry, BGP process dependent route-maps. After this processing, BGPD reads the configurations received in the next 5 seconds and then re-processes the route-maps from the beginning. This cyclic re-processing consumes time and CPU cycles. Instead of starting a timer when the first configuration is received, everytime a configuration is received, the existing timer is reset. This would mean that all the configurations are read first before the timer expires. This eliminates the cyclic re-processing. Signed-off-by: NaveenThanikachalam nthanikachal@vmware.com
Diffstat (limited to 'bgpd/bgp_ecommunity.c')
0 files changed, 0 insertions, 0 deletions