summaryrefslogtreecommitdiffstats
path: root/zebra/zebra_rnh.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2017-03-10 01:37:23 +0100
committerDonald Sharp <sharpd@cumulusnetworks.com>2017-03-10 01:37:23 +0100
commitfeb554e5089492871aefb9016b875e5352ecc5a8 (patch)
treeff88d6263e7d3a10a42321b12c5ce8632927573d /zebra/zebra_rnh.c
parentLowercase frr.conf (diff)
downloadfrr-feb554e5089492871aefb9016b875e5352ecc5a8.tar.xz
frr-feb554e5089492871aefb9016b875e5352ecc5a8.zip
zebra: Fix specific prefix handling
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>
Diffstat (limited to '')
-rw-r--r--zebra/zebra_rnh.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/zebra/zebra_rnh.c b/zebra/zebra_rnh.c
index edfe27492..b679803b0 100644
--- a/zebra/zebra_rnh.c
+++ b/zebra/zebra_rnh.c
@@ -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);