mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-15 06:43:16 +00:00
zebra: Short circuit test for nexthop groups when not using
When we are not using nexthop groups, there is no need to test for whether or not they are installed correctly or not Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
This commit is contained in:
parent
ff35a11676
commit
1a39fdc218
@ -1911,10 +1911,11 @@ int dplane_ctx_route_init(struct zebra_dplane_ctx *ctx, enum dplane_op_e op,
|
||||
* If its a delete we only use the prefix anyway, so this only
|
||||
* matters for INSTALL/UPDATE.
|
||||
*/
|
||||
if (((op == DPLANE_OP_ROUTE_INSTALL)
|
||||
|| (op == DPLANE_OP_ROUTE_UPDATE))
|
||||
&& !CHECK_FLAG(nhe->flags, NEXTHOP_GROUP_INSTALLED)
|
||||
&& !CHECK_FLAG(nhe->flags, NEXTHOP_GROUP_QUEUED)) {
|
||||
if (zebra_nhg_kernel_nexthops_enabled()
|
||||
&& (((op == DPLANE_OP_ROUTE_INSTALL)
|
||||
|| (op == DPLANE_OP_ROUTE_UPDATE))
|
||||
&& !CHECK_FLAG(nhe->flags, NEXTHOP_GROUP_INSTALLED)
|
||||
&& !CHECK_FLAG(nhe->flags, NEXTHOP_GROUP_QUEUED))) {
|
||||
ret = ENOENT;
|
||||
goto done;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user