]> git.puffer.fish Git - matthieu/frr.git/commitdiff
zebra: Fix specific prefix handling
authorDonald Sharp <sharpd@cumulusnetworks.com>
Fri, 10 Mar 2017 00:37:23 +0000 (19:37 -0500)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Fri, 10 Mar 2017 00:37:23 +0000 (19:37 -0500)
Suppose we are handling the process_workq and either a new static
route is installed or a Routing Protocol installs a new route.
We will call evaluate_rnh with a specific prefix.  We might
have a situation where we clear the NHC flag prematurely.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
zebra/zebra_rnh.c

index edfe274922e5423956a12cad37ff161be84360a3..b679803b06337af09cf82e98501e0cbfa1f83a1d 100644 (file)
@@ -730,10 +730,7 @@ zebra_evaluate_rnh (vrf_id_t vrfid, int family, int force, rnh_type_t type,
       /* Evaluating a specific entry, make sure it exists. */
       nrn = route_node_lookup (rnh_table, p);
       if (nrn && nrn->info)
-        {
-          zebra_rnh_evaluate_entry (vrfid, family, force, type, nrn);
-          zebra_rnh_clear_nhc_flag (vrfid, family, type, nrn);
-        }
+        zebra_rnh_evaluate_entry (vrfid, family, force, type, nrn);
 
       if (nrn)
         route_unlock_node (nrn);