diff options
| author | Donald Sharp <sharpd@nvidia.com> | 2021-06-10 10:54:11 -0400 |
|---|---|---|
| committer | Donald Sharp <sharpd@nvidia.com> | 2024-12-09 12:31:29 -0500 |
| commit | b3facc23df0ff09819f49a12cd0e48a2ddd5e354 (patch) | |
| tree | 18544eca4707e0a2ada8636545fd80aa96dfb2d5 /zebra/zebra_mpls.c | |
| parent | f8c464688d8ca2aa5250ae6828baee1daf06ea93 (diff) | |
zebra: Reduce memory usage of streams for encoding packets
For those packets that we are not sending 16k of data, but something
far less than 256 bytes. Reduce those stream sizes we allocate
to something much more reasonable.
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Diffstat (limited to 'zebra/zebra_mpls.c')
| -rw-r--r-- | zebra/zebra_mpls.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/zebra/zebra_mpls.c b/zebra/zebra_mpls.c index 0d3fd2a726..3325532ca9 100644 --- a/zebra/zebra_mpls.c +++ b/zebra/zebra_mpls.c @@ -466,7 +466,7 @@ static int fec_send(struct zebra_fec *fec, struct zserv *client) rn = fec->rn; /* Get output stream. */ - s = stream_new(ZEBRA_MAX_PACKET_SIZ); + s = stream_new(ZEBRA_SMALL_PACKET_SIZE); zclient_create_header(s, ZEBRA_FEC_UPDATE, VRF_DEFAULT); |
