summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRuss White <russ@riw.us>2024-07-23 16:42:41 -0400
committerGitHub <noreply@github.com>2024-07-23 16:42:41 -0400
commitaa9d66e922e2a232b2fd89b87d8cb7409ae82dc1 (patch)
tree995325a3c4eb3591d502a93de39ed561b8c87aeb
parentea5498ec5a4551cdf2a74b304b0963e0dbb1dad4 (diff)
parente36e570c6c2c4ee9be618ffef667e9d1a5758478 (diff)
Merge pull request #16410 from pguibert6WIND/show_zebra_dplane_nexthop
zebra: add nexthop counter to 'show zebra dplane' command
-rw-r--r--zebra/zebra_dplane.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/zebra/zebra_dplane.c b/zebra/zebra_dplane.c
index 0844b34672..1cee1ebb93 100644
--- a/zebra/zebra_dplane.c
+++ b/zebra/zebra_dplane.c
@@ -6003,6 +6003,14 @@ int dplane_show_helper(struct vty *vty, bool detailed)
vty_out(vty, "Zebra dataplane:\nRoute updates: %"PRIu64"\n",
incoming);
vty_out(vty, "Route update errors: %"PRIu64"\n", errs);
+
+ incoming = atomic_load_explicit(&zdplane_info.dg_nexthops_in,
+ memory_order_relaxed);
+ errs = atomic_load_explicit(&zdplane_info.dg_nexthop_errors,
+ memory_order_relaxed);
+ vty_out(vty, "Nexthop updates: %" PRIu64 "\n", incoming);
+ vty_out(vty, "Nexthop update errors: %" PRIu64 "\n", errs);
+
vty_out(vty, "Other errors : %"PRIu64"\n", other_errs);
vty_out(vty, "Route update queue limit: %"PRIu64"\n", limit);
vty_out(vty, "Route update queue depth: %"PRIu64"\n", queued);