diff options
author | Olivier Cochard <olivier@FreeBSD.org> | 2025-01-09 22:58:36 +0100 |
---|---|---|
committer | Olivier Cochard <olivier@FreeBSD.org> | 2025-01-09 23:07:38 +0100 |
commit | 4516e09a236bb31d6e852eadfb05f9576e4db7da (patch) | |
tree | 5c2d947f22448c924040427c8613edf8d6bda02e /net/bird3/files/patch-07-cli-flushing-tmp-linpool | |
parent | math/gp2c: upgrade to 0.0.14 (diff) |
net/bird3: Add new branch 3.x (multithreaded)
Warning: Consider version 3.0.0 to be unstable.
PR: 283403
Sponsored by: Netflix
Diffstat (limited to 'net/bird3/files/patch-07-cli-flushing-tmp-linpool')
-rw-r--r-- | net/bird3/files/patch-07-cli-flushing-tmp-linpool | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/net/bird3/files/patch-07-cli-flushing-tmp-linpool b/net/bird3/files/patch-07-cli-flushing-tmp-linpool new file mode 100644 index 000000000000..c05321812dac --- /dev/null +++ b/net/bird3/files/patch-07-cli-flushing-tmp-linpool @@ -0,0 +1,29 @@ +From 5fd0fd77e293328f354e7f6ed22632ba6ff96593 Mon Sep 17 00:00:00 2001 +From: Maria Matejka <mq@ucw.cz> +Date: Sun, 22 Dec 2024 22:26:44 +0100 +Subject: [PATCH] CLI: Flushing tmp_linpool after every shown net. + +There is no reason to keep the allocated objects through multiple nets. +--- + nest/rt-show.c | 5 +++-- + 1 file changed, 3 insertions(+), 2 deletions(-) + +diff --git a/nest/rt-show.c b/nest/rt-show.c +index 3986da83d..aa9209ca5 100644 +--- nest/rt-show.c ++++ nest/rt-show.c +@@ -282,8 +282,9 @@ rt_show_cont(struct cli *c) + rt_show_table(d); + + RT_FEED_WALK(&d->tab->req, f) +- if (f->count_routes) +- rt_show_net(d, f); ++ TMP_SAVED ++ if (f->count_routes) ++ rt_show_net(d, f); + + if (rt_export_feed_active(&d->tab->req)) + rt_feeder_unsubscribe(&d->tab->req); +-- +GitLab + |