diff options
author | Donald Sharp <sharpd@cumulusnetworks.com> | 2018-06-22 16:38:53 +0200 |
---|---|---|
committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2018-06-28 02:01:22 +0200 |
commit | 03ed85a6c065896c9377db173745c511ea40bdcb (patch) | |
tree | d012b6a0947e947e943e05aee3c4851f6dc9d8d1 /lib/stream.h | |
parent | zebra: Re-add tracking of redistribution events (diff) | |
download | frr-03ed85a6c065896c9377db173745c511ea40bdcb.tar.xz frr-03ed85a6c065896c9377db173745c511ea40bdcb.zip |
lib, zebra: Add a bit of code to look at fifo
When in a dev build add a bit of code to track max
depth of a fifo and to allow zebra to report on it.
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'lib/stream.h')
-rw-r--r-- | lib/stream.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/stream.h b/lib/stream.h index e5d325e43..11af85c66 100644 --- a/lib/stream.h +++ b/lib/stream.h @@ -115,6 +115,9 @@ struct stream_fifo { /* number of streams in this fifo */ _Atomic size_t count; +#if defined DEV_BUILD + _Atomic size_t max_count; +#endif struct stream *head; struct stream *tail; |