From 6b390b3c7bda5e1b658d3418753cce1a11f15ed3 Mon Sep 17 00:00:00 2001 From: Donald Sharp Date: Tue, 2 Nov 2021 19:22:15 -0400 Subject: [PATCH] zebra: Better handle replacing our route by a system route When a operator has a FRR based route installed into the FIB and a better route comes in from the system. There is code in the data plane to schedule the batching and continue processing. But in this case we are done so we can just return Signed-off-by: Donald Sharp --- zebra/rt_netlink.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zebra/rt_netlink.c b/zebra/rt_netlink.c index 24c01b7f51..bb13fcf423 100644 --- a/zebra/rt_netlink.c +++ b/zebra/rt_netlink.c @@ -2702,7 +2702,7 @@ netlink_put_route_update_msg(struct nl_batch *bth, struct zebra_dplane_ctx *ctx) */ if (RSYSTEM_ROUTE(dplane_ctx_get_type(ctx)) && !RSYSTEM_ROUTE(dplane_ctx_get_old_type(ctx))) - netlink_batch_add_msg( + return netlink_batch_add_msg( bth, ctx, netlink_delroute_msg_encoder, true); } else {