Skip to content

Commit c3f5fc9

Browse files
committed
zebra: Actually display I/O buffer sizes
An operator found a situation where zebra was backing up in a significant way towards BGP with EVPN changes taking up some serious amounts of memory. The key lines that would have clued us in on it were behind a dev build. Let's change this. Signed-off-by: Donald Sharp <sharpd@nvidia.com>
1 parent 4dd04dd commit c3f5fc9

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

lib/stream.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,9 +105,7 @@ struct stream_fifo {
105105

106106
/* number of streams in this fifo */
107107
atomic_size_t count;
108-
#if defined DEV_BUILD
109108
atomic_size_t max_count;
110-
#endif
111109

112110
struct stream *head;
113111
struct stream *tail;

zebra/zserv.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1149,12 +1149,10 @@ static void zebra_show_client_detail(struct vty *vty, struct zserv *client)
11491149
vty_out(vty, "ES-EVI %-12u%-12u%-12u\n",
11501150
client->local_es_evi_add_cnt, 0, client->local_es_evi_del_cnt);
11511151
vty_out(vty, "Errors: %u\n", client->error_cnt);
1152-
1153-
#if defined DEV_BUILD
11541152
vty_out(vty, "Input Fifo: %zu:%zu Output Fifo: %zu:%zu\n",
11551153
client->ibuf_fifo->count, client->ibuf_fifo->max_count,
11561154
client->obuf_fifo->count, client->obuf_fifo->max_count);
1157-
#endif
1155+
11581156
vty_out(vty, "\n");
11591157
}
11601158

0 commit comments

Comments
 (0)