diff options
| author | Donald Sharp <sharpd@cumulusnetworks.com> | 2018-06-22 10:38:53 -0400 |
|---|---|---|
| committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2018-06-27 20:01:22 -0400 |
| commit | 03ed85a6c065896c9377db173745c511ea40bdcb (patch) | |
| tree | d012b6a0947e947e943e05aee3c4851f6dc9d8d1 /lib/stream.h | |
| parent | 34fa08703676b24b8d982b4717a769d68b2df2f4 (diff) | |
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 e5d325e43e..11af85c663 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; |
