summaryrefslogtreecommitdiffstats
path: root/zebra/zebra_nhg.c
diff options
context:
space:
mode:
authorStephen Worley <sworley@cumulusnetworks.com>2020-05-10 22:34:36 +0200
committerStephen Worley <sworley@cumulusnetworks.com>2020-09-28 18:40:59 +0200
commit08da8bbc22f38a352bed729b041abc9bdc3eec6e (patch)
tree4d62416b8c5b7a0b0ab59ffb50c94a25743f312e /zebra/zebra_nhg.c
parentzebra,lib: command to only install proto-based nexthops (diff)
downloadfrr-08da8bbc22f38a352bed729b041abc9bdc3eec6e.tar.xz
frr-08da8bbc22f38a352bed729b041abc9bdc3eec6e.zip
zebra: hash proto-created but zebra ID spaced NHGS
To prevent duplication of singleton NHGs, lets hash any zebra-ID spaced NHGs sent from an upper level proto. These would be singleton NHGs anyway and should prevent duplication of dataplane installs. Signed-off-by: Stephen Worley <sworley@cumulusnetworks.com>
Diffstat (limited to 'zebra/zebra_nhg.c')
-rw-r--r--zebra/zebra_nhg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/zebra/zebra_nhg.c b/zebra/zebra_nhg.c
index dbf5adafe..e5fa7b425 100644
--- a/zebra/zebra_nhg.c
+++ b/zebra/zebra_nhg.c
@@ -676,7 +676,7 @@ static bool zebra_nhe_find(struct nhg_hash_entry **nhe, /* return value */
if (lookup->id == 0)
lookup->id = ++id_counter;
- if (ZEBRA_OWNED(lookup)) {
+ if (lookup->id < zclient_get_nhg_lower_bound()) {
/*
* This is a zebra hashed/owned NHG.
*