]> git.puffer.fish Git - mirror/frr.git/commit
bgpd: Reduce size of ibuf_work ringbuf 14091/head
authorDonald Sharp <sharpd@nvidia.com>
Mon, 24 Jul 2023 14:33:21 +0000 (10:33 -0400)
committerMergify <37929162+mergify[bot]@users.noreply.github.com>
Tue, 25 Jul 2023 14:27:39 +0000 (14:27 +0000)
commit91e95112e831b7e47d6c359980b3b55f0a58519c
tree491426372328c9953fd380b9f17fee074f3b9409
parente0d98cbb883d2789520a1c6d1a0f9dc66f4d390d
bgpd: Reduce size of ibuf_work ringbuf

The ringbuf is 650k in size.  This is obscenely large and
in practical experimentation FRR never even approaches
that size at all.  Let's reduce this to 1.5 max packet sizes.

If a BGP_MAX_PACKET_SIZE packet is ever received having a bit
of extra space ensures that we can read at least 1 packet.

This also will significantly reduce memory usage when the
operator has a lot of peers.

Signed-off-by: Donald Sharp <sharpd@nvidia.com>
(cherry picked from commit fe1c72a57315a7c9fc3c63dd2fbf3a10dafbc10b)
bgpd/bgpd.c