]> git.puffer.fish Git - matthieu/frr.git/commitdiff
zebra: clear route QUEUED flag in async notification handler
authorMark Stapp <mjs@voltanet.io>
Mon, 5 Aug 2019 14:07:26 +0000 (10:07 -0400)
committerMark Stapp <mjs@voltanet.io>
Mon, 5 Aug 2019 14:52:31 +0000 (10:52 -0400)
Ensure that the route-entry QUEUED flag is cleared in the async
notification path, as it is in the normal results processing
code path.

Signed-off-by: Mark Stapp <mjs@voltanet.io>
zebra/zebra_rib.c

index f3721c478d4ab6efb9a26a9def85b5106e285eb5..3608b887ee4b8683cf76705cf3283771a3c870be 100644 (file)
@@ -1926,6 +1926,9 @@ static void rib_process_dplane_notify(struct zebra_dplane_ctx *ctx)
                goto done;
        }
 
+       /* Ensure we clear the QUEUED flag */
+       UNSET_FLAG(re->status, ROUTE_ENTRY_QUEUED);
+
        /* Is this a notification that ... matters? We only really care about
         * the route that is currently selected for installation.
         */
@@ -1990,7 +1993,7 @@ static void rib_process_dplane_notify(struct zebra_dplane_ctx *ctx)
                                   dplane_ctx_get_vrf(ctx), dest_str);
 
                /* We expect this to be the selected route, so we want
-                * to tell others about this transistion.
+                * to tell others about this transition.
                 */
                SET_FLAG(re->status, ROUTE_ENTRY_INSTALLED);