]> git.puffer.fish Git - matthieu/frr.git/commit
bgpd: Replace peer->ibuf_scratch
authorDonald Sharp <sharpd@nvidia.com>
Fri, 21 Jul 2023 17:10:03 +0000 (13:10 -0400)
committerDonald Sharp <sharpd@nvidia.com>
Fri, 21 Jul 2023 17:10:03 +0000 (13:10 -0400)
commitbdc17624059c1722e5208523cb06fe9b0ed7acb2
treef8a059a6caf80f615a9eefc35d7394a8fe220031
parent4215e8011b52abaccc96198cb8fa6d7034521dc9
bgpd: Replace peer->ibuf_scratch

The peer->ibuf_scratch was allocating 65535 * 10 bytes
for scratch space to hold data incoming from a read
from a peer.  When you have 4k peers this is 262,1400,000
or 262 mb of data.  Which is crazy large.  Especially
since the i/o pthread is reading per peer without
any chance of having the data interfere with other reads.

Signed-off-by: Donald Sharp <sharpd@nvidia.com>
bgpd/bgp_io.c
bgpd/bgpd.h