]> git.puffer.fish Git - mirror/frr.git/commit
bgpd: Reduce size of ibuf_work ringbuf 14081/head
authorDonald Sharp <sharpd@nvidia.com>
Mon, 24 Jul 2023 14:33:21 +0000 (10:33 -0400)
committerDonald Sharp <sharpd@nvidia.com>
Mon, 24 Jul 2023 14:41:00 +0000 (10:41 -0400)
commitfe1c72a57315a7c9fc3c63dd2fbf3a10dafbc10b
treeaf6cdab2aae95fcf81abb370ee4eceb90bea631a
parent102bad0a9b65279358db787e2972a1711606d224
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>
bgpd/bgpd.c