summaryrefslogtreecommitdiff
path: root/bgpd/bgpd.h
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@nvidia.com>2023-07-21 12:14:59 -0400
committerDonald Sharp <sharpd@nvidia.com>2023-07-21 12:14:59 -0400
commitb157af0ac12f4d39e635ad814d4a42d670f4c328 (patch)
tree6fbc967f652ed188f0f208eb5a6824585cf5fa79 /bgpd/bgpd.h
parent3a58764e3a7a5912187d5d062e06044bc1cd7044 (diff)
bgpd: Remove peer->scratch
This was only ever being allocated and de-allocated. Let's save 65k per peer Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Diffstat (limited to 'bgpd/bgpd.h')
-rw-r--r--bgpd/bgpd.h6
1 files changed, 0 insertions, 6 deletions
diff --git a/bgpd/bgpd.h b/bgpd/bgpd.h
index cddb896615..683d226d7b 100644
--- a/bgpd/bgpd.h
+++ b/bgpd/bgpd.h
@@ -1171,12 +1171,6 @@ struct peer {
struct stream *curr; // the current packet being parsed
- /* We use a separate stream to encode MP_REACH_NLRI for efficient
- * NLRI packing. peer->obuf_work stores all the other attributes. The
- * actual packet is then constructed by concatenating the two.
- */
- struct stream *scratch;
-
/* the doppelganger peer structure, due to dual TCP conn setup */
struct peer *doppelganger;