summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Stapp <mjs.ietf@gmail.com>2025-01-13 13:47:12 -0500
committerGitHub <noreply@github.com>2025-01-13 13:47:12 -0500
commit4086b9c492c37d072de1918b80e66031d6dcbb83 (patch)
tree6f628f299dabc7235e0dac3dcbb2d1335df38d88
parent0af26e1728624e0d48adbd02dc901043549e5c51 (diff)
parente77954e5d9b2e989f56690ce18951bc0877b37ab (diff)
Merge pull request #17839 from raja-rajasekar/rajasekarr/optimize_nh_compare
zebra: Optimize invoking nhg compare func
-rw-r--r--zebra/zebra_nhg.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/zebra/zebra_nhg.c b/zebra/zebra_nhg.c
index 6a43fe0c84..0a79ed5590 100644
--- a/zebra/zebra_nhg.c
+++ b/zebra/zebra_nhg.c
@@ -3145,8 +3145,8 @@ backups_done:
remove = new_nhe;
- if (old_re && old_re->type == re->type &&
- old_re->instance == re->instance)
+ if (old_re && old_re->type == re->type && old_re->instance == re->instance &&
+ new_nhe != old_re->nhe)
new_nhe = zebra_nhg_rib_compare_old_nhe(rn, re, new_nhe,
old_re->nhe);