]> git.puffer.fish Git - matthieu/frr.git/commitdiff
pimd: Add whether or not the rpf succeeded or not to the debug
authorDonald Sharp <sharpd@nvidia.com>
Sat, 12 Aug 2023 15:40:30 +0000 (11:40 -0400)
committerDonald Sharp <sharpd@nvidia.com>
Mon, 14 Aug 2023 15:08:00 +0000 (11:08 -0400)
Hard to know what is going on if the debug doesn't tell us.

Signed-off-by: Donald Sharp <sharpd@nvidia.com>
pimd/pim_nht.c

index 10d80312e25431a9d603c87b68d5f231dea82030..4e8e5f0df7353b2205b7abf268e75b323d0f19c5 100644 (file)
@@ -461,15 +461,15 @@ static int pim_update_upstream_nh_helper(struct hash_bucket *bucket, void *arg)
        }
 
        if (PIM_DEBUG_PIM_NHT) {
-               zlog_debug(
-                       "%s: NHT upstream %s(%s) old ifp %s new ifp %s",
-                       __func__, up->sg_str, pim->vrf->name,
-                       old.source_nexthop.interface ? old.source_nexthop
-                                                              .interface->name
-                                                    : "Unknown",
-                       up->rpf.source_nexthop.interface ? up->rpf.source_nexthop
-                                                                  .interface->name
-                                                        : "Unknown");
+               zlog_debug("%s: NHT upstream %s(%s) old ifp %s new ifp %s rpf_result: %d",
+                          __func__, up->sg_str, pim->vrf->name,
+                          old.source_nexthop.interface ? old.source_nexthop
+                                                                 .interface->name
+                                                       : "Unknown",
+                          up->rpf.source_nexthop.interface ? up->rpf.source_nexthop
+                                                                     .interface->name
+                                                           : "Unknown",
+                          rpf_result);
        }
 
        return HASHWALK_CONTINUE;