Skip to content

Commit

Permalink
zebra: Don't clear nexthop fib flag on rib_install
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
sworleys committed Nov 12, 2019
1 parent 19474c9 commit ace3bbb
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions zebra/zebra_rib.c
Expand Up @@ -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)
Expand Down

0 comments on commit ace3bbb

Please sign in to comment.