]> git.puffer.fish Git - mirror/frr.git/commit
Zebra: Static NHT fixes
authorDonald Sharp <sharpd@cumulusnetworks.com>
Wed, 20 May 2015 01:04:15 +0000 (18:04 -0700)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Wed, 20 May 2015 01:04:15 +0000 (18:04 -0700)
commitca657c652da2f2545092cb03447d5f952e9d91be
tree07c401ac508b9f3835f915639ab7a2e2a7329cae
parentb4a039bf228c0009a6e5a36597e139b9c4d4d95c
Zebra: Static NHT fixes

When NHT calls rib_process() to be invoked for a prefix, the RIB has already
been marked as having NH changes. The first call to nexthop_active_update
clears this flag and attempts to re-determine if there are any NH changes for
a prefix. However, when the NH is recurisve, this fails. Furthermore, since
NHT has already determined that this RIB has NH changes, there's no need to
ascertain that again. The original patch used static route as the proxy to
skip this call which was incorrect since rib_process can be invoked for
static routes for reasons other than NHT. So, this patch removes the check
for static route and directly checks if the NH changed flag has been set.

Signed-off-by: Dinesh G Dutt <ddutt@cumulusnetworks.com>
Reviewed-by: Vivek Venkataraman <vivek@cumulusnetworks.com>
zebra/zebra_rib.c