Skip to content

Commit 33dccbe

Browse files
zebra: Actually display I/O buffer sizes (part-2)
An extension of commit-8d8f12ba8e5cd11c189b8475b05539fa8415ccb9 Removing ifdef DEV_BUILD in stream_fifo_push as well to make the 'sh zebra client' display the current I/O fifo along with max fifo items. TICKET :#3390099 Signed-off-by: Rajasekar Raja <rajasekarr@nvidia.com>
1 parent 84d1fb1 commit 33dccbe

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

lib/stream.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1241,9 +1241,7 @@ void stream_fifo_init(struct stream_fifo *fifo)
12411241
/* Add new stream to fifo. */
12421242
void stream_fifo_push(struct stream_fifo *fifo, struct stream *s)
12431243
{
1244-
#if defined DEV_BUILD
12451244
size_t max, curmax;
1246-
#endif
12471245

12481246
if (fifo->tail)
12491247
fifo->tail->next = s;
@@ -1252,15 +1250,11 @@ void stream_fifo_push(struct stream_fifo *fifo, struct stream *s)
12521250

12531251
fifo->tail = s;
12541252
fifo->tail->next = NULL;
1255-
#if !defined DEV_BUILD
1256-
atomic_fetch_add_explicit(&fifo->count, 1, memory_order_release);
1257-
#else
12581253
max = atomic_fetch_add_explicit(&fifo->count, 1, memory_order_release);
12591254
curmax = atomic_load_explicit(&fifo->max_count, memory_order_relaxed);
12601255
if (max > curmax)
12611256
atomic_store_explicit(&fifo->max_count, max,
12621257
memory_order_relaxed);
1263-
#endif
12641258
}
12651259

12661260
void stream_fifo_push_safe(struct stream_fifo *fifo, struct stream *s)

0 commit comments

Comments
 (0)