We were still doing a lookup on the nhe_id from before we
started referencing re->nhe directly.
Change set flag to just use re->nhe directly here since they
should always be the same at this point in the code anyway.
Signed-off-by: Stephen Worley <sworley@cumulusnetworks.com>
(cherry picked from commit
715e5c70d564017a8b709599e23bf94884ab9bb9)
route_entry_update_nhe(re, new_nhe);
}
- if (curr_active) {
- struct nhg_hash_entry *nhe = NULL;
-
- nhe = zebra_nhg_lookup_id(re->nhe_id);
-
- if (nhe)
- SET_FLAG(nhe->flags, NEXTHOP_GROUP_VALID);
- else
- flog_err(
- EC_ZEBRA_TABLE_LOOKUP_FAILED,
- "Active update on NHE id=%u that we do not have in our tables",
- re->nhe_id);
- }
+ if (curr_active)
+ SET_FLAG(re->nhe->flags, NEXTHOP_GROUP_VALID);
/*
* Do not need these nexthops anymore since they