mirror of
https://git.proxmox.com/git/mirror_frr
synced 2026-08-02 08:33:36 +00:00
zebra: Properly set NEXTHOP_FLAG_FIB when skipping install
When the dataplane detects that we have no need to reinstall the same route, setup the NEXTHOP_FLAG_FIB appropriately. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
This commit is contained in:
parent
e3b9c0f2f6
commit
27805e74f0
@ -2368,11 +2368,25 @@ dplane_route_update_internal(struct route_node *rn,
|
||||
if ((dplane_ctx_get_type(ctx) == dplane_ctx_get_old_type(ctx))
|
||||
&& (dplane_ctx_get_nhe_id(ctx)
|
||||
== dplane_ctx_get_old_nhe_id(ctx))) {
|
||||
struct nexthop *nexthop;
|
||||
|
||||
if (IS_ZEBRA_DEBUG_DPLANE)
|
||||
zlog_debug(
|
||||
"%s: Ignoring Route exactly the same",
|
||||
__func__);
|
||||
|
||||
for (ALL_NEXTHOPS_PTR(dplane_ctx_get_ng(ctx),
|
||||
nexthop)) {
|
||||
if (CHECK_FLAG(nexthop->flags,
|
||||
NEXTHOP_FLAG_RECURSIVE))
|
||||
continue;
|
||||
|
||||
if (CHECK_FLAG(nexthop->flags,
|
||||
NEXTHOP_FLAG_ACTIVE))
|
||||
SET_FLAG(nexthop->flags,
|
||||
NEXTHOP_FLAG_FIB);
|
||||
}
|
||||
|
||||
return ZEBRA_DPLANE_REQUEST_SUCCESS;
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user