]> git.proxmox.com Git - mirror_frr.git/commit - zebra/zebra_nhg.c
zebra: Only install a minimal amount of times
authorDonald Sharp <sharpd@cumulusnetworks.com>
Thu, 11 Jun 2020 11:34:18 +0000 (07:34 -0400)
committerStephen Worley <sworley@cumulusnetworks.com>
Mon, 28 Sep 2020 16:40:59 +0000 (12:40 -0400)
commite3b9c0f2f696956aac4f7c58ad73f46b46264dca
tree23b59ce730eda08f3e8a851c12321f00a1b9df9c
parentcc6a0d7d80e176ce9cced99cb1d5de9792c6f3f3
zebra: Only install a minimal amount of times

The code was installing the nexthop group again using
the NLM_F_REPLACE function causing extremely large
route installation times.  This reduces the time from
installing 1 million routes from sharpd with a nhg
from > 200 seconds ( where I gave up ) to ~15
seconds on my machine for 32 x ecmp.  As a side note 1 million
routes using master sharpd takes ~50 seconds to do
the same thing.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
zebra/zebra_nhg.c