summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Stapp <mjs@cisco.com>2024-12-04 21:10:24 +0100
committerMark Stapp <mjs@cisco.com>2024-12-05 15:23:53 +0100
commit9af5425a28388d73806cea35144c45ba3c16c60c (patch)
tree572c670c9777d7a0d8a5283053b6bbb985ac9611
parentzebra: remove thread-unsafe debug from netlink nhg encoder (diff)
downloadfrr-9af5425a28388d73806cea35144c45ba3c16c60c.tar.xz
frr-9af5425a28388d73806cea35144c45ba3c16c60c.zip
zebra: improve an rnode debug
Improve a debug when we create a new rib_dest by calling the debug after setting up the dest. Signed-off-by: Mark Stapp <mjs@cisco.com>
-rw-r--r--zebra/zebra_rib.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/zebra/zebra_rib.c b/zebra/zebra_rib.c
index 8e4550846..a63528ee5 100644
--- a/zebra/zebra_rib.c
+++ b/zebra/zebra_rib.c
@@ -4033,10 +4033,10 @@ static void rib_link(struct route_node *rn, struct route_entry *re, int process)
dest = rib_dest_from_rnode(rn);
if (!dest) {
+ dest = zebra_rib_create_dest(rn);
+
if (IS_ZEBRA_DEBUG_RIB_DETAILED)
rnode_debug(rn, re->vrf_id, "rn %p adding dest", rn);
-
- dest = zebra_rib_create_dest(rn);
}
re_list_add_head(&dest->routes, re);