summaryrefslogtreecommitdiff
path: root/zebra/zebra_rib.c
diff options
context:
space:
mode:
authorStephen Worley <sworley@cumulusnetworks.com>2019-11-11 18:28:29 -0500
committerStephen Worley <sworley@cumulusnetworks.com>2019-11-12 01:24:39 -0500
commitace3bbba4bdeb1c92d69225a54c0149a11340b6c (patch)
treed2facd35e72e735a0e814a9d9912362a748b7a4f /zebra/zebra_rib.c
parent19474c9c8c6b3a76c4d6b66baeff6a485fb5d5be (diff)
zebra: Don't clear nexthop fib flag on rib_install
We cannot clear the NEXTHOP_FLAG_FIB nexthop flag when sending routes to the dataplane anymore since nexthops are now shared. We were seeing a situation where if we delete a route using a nexthop group that is still active with another route, the fib flag was being unset by this code path despite them still being valid fib nexthops with the other route. Signed-off-by: Stephen Worley <sworley@cumulusnetworks.com>
Diffstat (limited to 'zebra/zebra_rib.c')
-rw-r--r--zebra/zebra_rib.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/zebra/zebra_rib.c b/zebra/zebra_rib.c
index c24a518afb..781963793e 100644
--- a/zebra/zebra_rib.c
+++ b/zebra/zebra_rib.c
@@ -570,14 +570,6 @@ void rib_install_kernel(struct route_node *rn, struct route_entry *re,
nexthops_free(old->fib_ng.nexthop);
old->fib_ng.nexthop = NULL;
}
-
- if (!RIB_SYSTEM_ROUTE(old)) {
- /* Clear old route's FIB flags */
- for (ALL_NEXTHOPS_PTR(old->ng, nexthop)) {
- UNSET_FLAG(nexthop->flags,
- NEXTHOP_FLAG_FIB);
- }
- }
}
if (zvrf)