diff options
| author | Mark Stapp <mjs.ietf@gmail.com> | 2024-04-23 13:01:35 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-04-23 13:01:35 -0400 |
| commit | 1c49f93b5f19054eec1d975898b19cf3d9f118bc (patch) | |
| tree | 892ab9160b0d1c943655c85869f846f8b18b5012 /lib/stream.c | |
| parent | 99ae3290477e16c8c984f98dcc83d042b1c33049 (diff) | |
| parent | 33dccbe31c4a9758c7daeee653089b6148dbe94a (diff) | |
Merge pull request #15769 from raja-rajasekar/rajasekarr/backpressure_display_i_o_buf
zebra: Actually display I/O buffer sizes (part-2)
Diffstat (limited to 'lib/stream.c')
| -rw-r--r-- | lib/stream.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/lib/stream.c b/lib/stream.c index c6de3aefa1..fa20ebdbe7 100644 --- a/lib/stream.c +++ b/lib/stream.c @@ -1241,9 +1241,7 @@ void stream_fifo_init(struct stream_fifo *fifo) /* Add new stream to fifo. */ void stream_fifo_push(struct stream_fifo *fifo, struct stream *s) { -#if defined DEV_BUILD size_t max, curmax; -#endif if (fifo->tail) fifo->tail->next = s; @@ -1252,15 +1250,11 @@ void stream_fifo_push(struct stream_fifo *fifo, struct stream *s) fifo->tail = s; fifo->tail->next = NULL; -#if !defined DEV_BUILD - atomic_fetch_add_explicit(&fifo->count, 1, memory_order_release); -#else max = atomic_fetch_add_explicit(&fifo->count, 1, memory_order_release); curmax = atomic_load_explicit(&fifo->max_count, memory_order_relaxed); if (max > curmax) atomic_store_explicit(&fifo->max_count, max, memory_order_relaxed); -#endif } void stream_fifo_push_safe(struct stream_fifo *fifo, struct stream *s) |
