summaryrefslogtreecommitdiff
path: root/zebra/zebra_rib.c
diff options
context:
space:
mode:
authorDonatas Abraitis <donatas@opensourcerouting.org>2024-09-06 09:28:24 +0300
committerGitHub <noreply@github.com>2024-09-06 09:28:24 +0300
commitebfcbbcc898359ec8e79bdbae9d75a99d785a076 (patch)
tree44e7dd06cec3556a3ee6cdfbaa8551cd533bc0a9 /zebra/zebra_rib.c
parent340d51fc3a9c88b4db38c685cf87ab9970db060a (diff)
parent98b11de9f60c16e61a581b03a97294563eb9f673 (diff)
Merge pull request #16220 from donaldsharp/zebra_fpm_backpressure
Zebra fpm backpressure
Diffstat (limited to 'zebra/zebra_rib.c')
-rw-r--r--zebra/zebra_rib.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/zebra/zebra_rib.c b/zebra/zebra_rib.c
index d53b27a387..075cc2ffb4 100644
--- a/zebra/zebra_rib.c
+++ b/zebra/zebra_rib.c
@@ -5108,6 +5108,17 @@ static int rib_dplane_results(struct dplane_ctx_list_head *ctxlist)
return 0;
}
+uint32_t zebra_rib_dplane_results_count(void)
+{
+ uint32_t count;
+
+ frr_with_mutex (&dplane_mutex) {
+ count = dplane_ctx_queue_count(&rib_dplane_q);
+ }
+
+ return count;
+}
+
/*
* Ensure there are no empty slots in the route_info array.
* Every route type in zebra should be present there.