Skip to content

Commit 66039d2

Browse files
committed
zebra: Pass in ZEBRA_ROUTE_MAX instead of true
zebra_nhg_install_kernel takes a route type. We don't know it at that particular spot but we should not be passing in `true`. Let's use ZEBRA_ROUTE_MAX to indicate we do not know, so that the correct thing is done. Signed-off-by: Donald Sharp <sharpd@nvidia.com>
1 parent 322b2c6 commit 66039d2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

zebra/zebra_nhg.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1140,7 +1140,8 @@ static void zebra_nhg_handle_install(struct nhg_hash_entry *nhe, bool install)
11401140
"%s nh id %u (flags 0x%x) associated dependent NHG %pNG install",
11411141
__func__, nhe->id, nhe->flags,
11421142
rb_node_dep->nhe);
1143-
zebra_nhg_install_kernel(rb_node_dep->nhe, true);
1143+
zebra_nhg_install_kernel(rb_node_dep->nhe,
1144+
ZEBRA_ROUTE_MAX);
11441145
}
11451146
}
11461147
}

0 commit comments

Comments
 (0)