]> git.ipfire.org Git - thirdparty/bird.git/log
thirdparty/bird.git
5 months agort-table.c: Solution for missing igp_metric described in issue #154. rt-table_fix
Katerina Kubecova [Tue, 4 Mar 2025 12:00:43 +0000 (13:00 +0100)] 
rt-table.c: Solution for missing igp_metric described in issue #154.
The igp_metric was set as an eattr, but not as a hostentry attribut.
However, the eattr was ignored and possibly even rewritten to
the hostentry (default) value.
The hostentry is initialized in ea_set_hostentry. There is an ea_list,
but it is not used for setting the igp_metric and it seems like it
does not contain the igp_metric at all. That is why I set it in rt_next_hop_resolve_rte.

5 months agort-table: fixed rt_notify_basic - old route is now cleared in case it was previously...
Katerina Kubecova [Tue, 25 Feb 2025 11:46:06 +0000 (12:46 +0100)] 
rt-table: fixed rt_notify_basic - old route is now cleared in case it was previously rejected. The problem manifested in RA_OPTIMAL channel mode. In this mode, we need only one route of a net to be in accepted table or to be in rejected table, but not in both. When there was a route in accepted map and we were addind another route of the same net, we added the new route, removed the old route and everything was ok. But when the first route was in rejected map, we just added the new route. That caused inconsistency - there were two routes of the same net in the maps (in accepted and rejected or both in rejected). This was causing a crashes in assert in channel_notify_basic.

5 months agoFixing a refeed inconsistency
Maria Matejka [Mon, 17 Feb 2025 20:37:46 +0000 (21:37 +0100)] 
Fixing a refeed inconsistency

On refeed, the table should not resend any obsolete routes
which have already been seen by the recipient, nor the appropriate
journal items.

5 months agofixup! BGP: Export uses common attribute cache slab_refactoring
Katerina Kubecova [Mon, 24 Feb 2025 08:45:19 +0000 (09:45 +0100)] 
fixup! BGP: Export uses common attribute cache

5 months agoBGP: Export uses common attribute cache
Maria Matejka [Wed, 29 May 2024 06:18:31 +0000 (08:18 +0200)] 
BGP: Export uses common attribute cache

There is no real need for storing bucket attributes locally and we may
save some memory by caching the attributes in one central place.

This was a contention problem though, so this commit got reverted,
but now the attribute cache is actually lockless (yay!) and we can
try it again.

If this becomes a contention problem, we should ... no, please not.
Not again! Please!

(Dug out from the history and updated by Katerina Kubecova.)

5 months agoUnlocking the global attribute cache
Katerina Kubecova [Fri, 31 Jan 2025 10:13:26 +0000 (11:13 +0100)] 
Unlocking the global attribute cache

Now, when we have the unlocked slab, we can also go for a completely
lockless global attribute cache, which has been the major contention
point in BIRD 3.

This is a complicated data structure, basically a lockless hash table
with use-counted items inside, allowing concurrent insertions and
deletions.

Hash tables have to dynamically resize its base array, and the rehash
routine runs from an event if needed.

Also, due to some funny meta-race conditions, it is now possible to
end up with multiple ea_list_storage instances with the same contents,
yet it looks like it happens very rarely. (Prove us wrong, we dare you!)

5 months agoSlab: Allowing concurrent allocations without locking
Katerina Kubecova [Wed, 18 Dec 2024 11:18:17 +0000 (12:18 +0100)] 
Slab: Allowing concurrent allocations without locking

Every active thread now gets its own page from which it allocates
blocks. This enables concurrent allocations without much contention,
alleviating the need for mutex locking over Slab allocations,
effectively making Slab lock-free.

This adds some overhead in case every thread just allocates one item and
finishes, yet these situations should not happen too often and/or have
too large impact, so we don't need to care much. If something like this
happens, though, please cry. We'll cry with you, for sure.

Also there is a cleanup routine now which has to run often enough to
ensure that pages with some freed blocks get available for allocations.

This rework also changes the API of slabs, requiring an event list to
send cleanup events to, to be passed to sl_new().

5 months agoSlab: Remove fake slab
Katerina Kubecova [Tue, 17 Dec 2024 14:34:56 +0000 (15:34 +0100)] 
Slab: Remove fake slab

From the beginning, there is a years-old implementation of a slab
not actually being a slab, just transparently passing all requests
to malloc and free. We don't need that anymore, we have different
methods now to determine whether the problem is the allocator or
something else, and as we are going to change the slab API anyway,
together with some behavioral updates, having a fake slab is just
an anachronism.

5 months agoThreads: assigning IDs from hmap
Katerina Kubecova [Wed, 18 Dec 2024 13:24:25 +0000 (14:24 +0100)] 
Threads: assigning IDs from hmap

For certain upcoming data structures, we actually need to use thread IDs
as a functional information to index things, not just a logging token.
Thus, we need them to be dense, not just flying around as they were until now.

To achieve this, we assign the IDs from a global hmap when the threads
are started, and properly return them when the threads are finished.
This way, the IDs of stopping threads are expected to be recycled,
whereas until now it wasn't expected to happen.

You may need to take care about this in your log reading apparatus.

Also there is now a maximum thread count hard limit because unlimited
thread count is too crazy to handle. But the limit is still ridiculously
high and nobody is ever expected to hit it anyway.

5 months agoThreads: add a callback for thread shutdown
Maria Matejka [Thu, 23 Jan 2025 12:15:43 +0000 (13:15 +0100)] 
Threads: add a callback for thread shutdown

5 months agoRCU: Add split-sync calls
Maria Matejka [Fri, 31 Jan 2025 12:17:11 +0000 (13:17 +0100)] 
RCU: Add split-sync calls

Now, instead of synchronize_rcu(), one can call rcu_begin_sync(),
store the value, and (probably via defer_call()) use it later
to check by rcu_end_sync() that it indeed has ended.

5 months agoDocumentation: show memory decription
Katerina Kubecova [Wed, 15 Jan 2025 12:06:16 +0000 (13:06 +0100)] 
Documentation: show memory decription

5 months agoRevert migration of route attributes and BGP TX cache to Stonehenge
Maria Matejka [Wed, 19 Feb 2025 08:40:27 +0000 (09:40 +0100)] 
Revert migration of route attributes and BGP TX cache to Stonehenge

It collides with the new implementation of lockless Slab and global
attribute cache, and becomes effectively useless.

This reverts commit 4f7899e3cb17ee67875e53512db25ba5aa1dc236.
This reverts commit 240dd41f06ef805f0f45ab8d2f58376fb9e538a6.
This reverts commit 29df992f7f6ad03110240b2e65b498fe97371725.

6 months agoNEWS and version update v3.0.1
Maria Matejka [Thu, 9 Jan 2025 20:54:53 +0000 (21:54 +0100)] 
NEWS and version update

6 months agoMerge remote-tracking branch 'origin/stable-v2.16' into HEAD
Maria Matejka [Thu, 9 Jan 2025 20:54:15 +0000 (21:54 +0100)] 
Merge remote-tracking branch 'origin/stable-v2.16' into HEAD

6 months agoNEWS and version update v2.16.1
Maria Matejka [Thu, 9 Jan 2025 20:51:15 +0000 (21:51 +0100)] 
NEWS and version update

6 months agoMerge commit 'abecb5bb408f253cd24345ba94940ea0f7b59f4f' into HEAD
Maria Matejka [Thu, 9 Jan 2025 17:55:26 +0000 (18:55 +0100)] 
Merge commit 'abecb5bb408f253cd24345ba94940ea0f7b59f4f' into HEAD

6 months agoMerge commit '85aa283071ed75059fd8c889bc4ee33be1f901af' into HEAD
Maria Matejka [Thu, 9 Jan 2025 17:46:04 +0000 (18:46 +0100)] 
Merge commit '85aa283071ed75059fd8c889bc4ee33be1f901af' into HEAD

6 months agoMerge commit 'd221f39731be40ed3821f8db09d590edb849cb0c' into HEAD
Maria Matejka [Thu, 9 Jan 2025 17:45:50 +0000 (18:45 +0100)] 
Merge commit 'd221f39731be40ed3821f8db09d590edb849cb0c' into HEAD

6 months agoMerge commit 'e063365590b9b857a5bd0acfa519783eba639bbf' into stable-v3.0
Maria Matejka [Thu, 9 Jan 2025 17:30:33 +0000 (18:30 +0100)] 
Merge commit 'e063365590b9b857a5bd0acfa519783eba639bbf' into stable-v3.0

6 months agolib: Unify alignment of allocators
Ondrej Zajicek [Thu, 9 Jan 2025 15:44:51 +0000 (16:44 +0100)] 
lib: Unify alignment of allocators

Different internal allocators (memory blocks, linpools, and slabs) used
different way to compute alignment. Unify it to use alignment based on
standard max_align_t type.

On x86_64, this does not change alignment of memory blocks and linpools
(both old and new is 16), but it increases alignment of slabs from 8 to
16.

Minor changes by commiter.

6 months agoTable: Fixed table debug settings reconfiguration
Maria Matejka [Wed, 8 Jan 2025 19:59:03 +0000 (20:59 +0100)] 
Table: Fixed table debug settings reconfiguration

6 months agoTable: more best route refeed fixes
Maria Matejka [Wed, 8 Jan 2025 19:22:21 +0000 (20:22 +0100)] 
Table: more best route refeed fixes

Best route refeed is tricky. The journal may include repeatedly the same
route in the old and/or in the new position in case of flaps. We don't
like checking that fully in the RCU critical section which is already
way too long, thus we filter out the repeated occurence of the current
best route while keeping possibly more old routes.

We also don't want to send spurious withdraws, and we need to check that
only one notification per net is sent for RA_OPTIMAL.

There was also missing a rejected map update in case of idempotent
squashed update, and last but not least, the best route journal should
not include invalid routes (import keep filtered).

6 months agoTable: old best route refeed fix
Maria Matejka [Tue, 7 Jan 2025 11:13:57 +0000 (12:13 +0100)] 
Table: old best route refeed fix

When refeeding with RA_OPTIMAL, the old best routes weren't announced,
leading to weird behavior of protocols, mostly kernel. Fixed.

6 months agoBGP: fixed deterministic med crashes
Maria Matejka [Tue, 7 Jan 2025 10:08:04 +0000 (11:08 +0100)] 
BGP: fixed deterministic med crashes

There were several places of forgotten NULL checks.

Thanks to Alarig Le Lay <alarig@swordarmor.fr> for reporting:
https://trubka.network.cz/pipermail/bird-users/2024-December/017990.html

6 months agoBGP: fix display name of bgp_otc attribute
Maria Matejka [Fri, 27 Dec 2024 15:22:59 +0000 (16:22 +0100)] 
BGP: fix display name of bgp_otc attribute

6 months agoAllocate the normalization buckets on stack
Maria Matejka [Tue, 24 Dec 2024 15:16:55 +0000 (16:16 +0100)] 
Allocate the normalization buckets on stack

Even though allocating from tmp_linpool is quite cheap,
it isn't cheap when the block is larger than a page, which is the case here.
Instead, we now allocate just the result which typically fits in a page,
avoiding a necessity of a malloc().

6 months agoBGP: TX bucket storage moved to Stonehenge
Maria Matejka [Tue, 24 Dec 2024 12:22:56 +0000 (13:22 +0100)] 
BGP: TX bucket storage moved to Stonehenge

6 months agoRoute attribute storage moved to Stonehenge
Maria Matejka [Tue, 24 Dec 2024 12:12:58 +0000 (13:12 +0100)] 
Route attribute storage moved to Stonehenge

6 months agoStonehenge: multi-slab allocator
Maria Matejka [Tue, 24 Dec 2024 11:18:39 +0000 (12:18 +0100)] 
Stonehenge: multi-slab allocator

To mid-term allocate and free lots of small blocks in a fast pace,
mb_alloc is too slow and causes heap bloating. We can already allocate
blocks from slabs, and if we allow for a little bit of inefficiency,
we can just use multiple slabs with stepped sizes.

This technique is already used in ea_list allocation which is gonna be
converted to Stonehenge.

6 months agoGraceful recovery: converted to obstacles
Maria Matejka [Mon, 23 Dec 2024 20:06:26 +0000 (21:06 +0100)] 
Graceful recovery: converted to obstacles

Yet another refcounting mechanism had a locking collision.

6 months agoKernel: feed only once during startup
Maria Matejka [Mon, 23 Dec 2024 10:58:05 +0000 (11:58 +0100)] 
Kernel: feed only once during startup

There was an inefficiency in the initial scan state machine,
causing routes to be fed several times instead of just once.
Now the export startup is postponed until first krt_scan()
finishes and we actually can do the pruning with full information.

6 months agoCLI: Flushing tmp_linpool after every shown net.
Maria Matejka [Sun, 22 Dec 2024 21:26:44 +0000 (22:26 +0100)] 
CLI: Flushing tmp_linpool after every shown net.

There is no reason to keep the allocated objects through multiple nets.

6 months agoCLI: allocate TX buffers as pages, not by malloc
Maria Matejka [Sun, 22 Dec 2024 21:10:38 +0000 (22:10 +0100)] 
CLI: allocate TX buffers as pages, not by malloc

Every malloc risks heap bloating and these blocks are already
the same size as pages.

6 months agoStatic: fixed ASPA reconfiguration
Maria Matejka [Thu, 26 Dec 2024 10:34:02 +0000 (11:34 +0100)] 
Static: fixed ASPA reconfiguration

Due to an oversight, the provider lists weren't compared on reconfiguration.

Reported-By: Ralph Covelli <rcovelli@he.net>
6 months agoNest: Fix handling of 64-bit rte_src.private_id
Ondrej Zajicek [Tue, 17 Dec 2024 08:00:42 +0000 (09:00 +0100)] 
Nest: Fix handling of 64-bit rte_src.private_id

The commit 21213be523baa7f2cbf0feaa617f265c55e9b17a expanded private_id
in route source to u64, but forgot to modify function arguments, so it
was still cropped at 32-bit, which may cause some collisions for L3VPN.
This patch fixes that.

6 months agoLib: Ensure that all net_addr structures have the same alignment
Ondrej Zajicek [Mon, 16 Dec 2024 17:56:30 +0000 (18:56 +0100)] 
Lib: Ensure that all net_addr structures have the same alignment

Also weaken the explicit alignment of net_addr to be u32, as VPN
is already u32-aligned.

6 months agoDoc: Fix protocol outline in RPKI
Ondrej Zajicek [Mon, 16 Dec 2024 18:29:27 +0000 (19:29 +0100)] 
Doc: Fix protocol outline in RPKI

Protocol outlines should not contain specific values.

Also fix some space intendation in code sections.

6 months agoLib: Data type for VPN route distinguishers
Ondrej Zajicek [Mon, 16 Dec 2024 17:27:42 +0000 (18:27 +0100)] 
Lib: Data type for VPN route distinguishers

Use a distinct data structure for VPN route distinguishers instead
of just u64.

6 months agoNetlink: Handle onlink flag on BSD-Netlink
Ondrej Zajicek [Thu, 12 Dec 2024 03:04:07 +0000 (04:04 +0100)] 
Netlink: Handle onlink flag on BSD-Netlink

On BSD, the onlink flag is not tracked or reported by kernel. We are
using an heuristic that assigns the onlink flag to routes scanned from
the kernel. We should use the same heuristic even in BSD-Netlink
case, as the onlink flag is not reported here too.

Thanks to Björn König for the original patch.

6 months agoBabel: fix seqno wrapping on seqno request
Fabian Bläse [Tue, 10 Dec 2024 01:14:06 +0000 (02:14 +0100)] 
Babel: fix seqno wrapping on seqno request

The Babel seqno wraps around when reaching its maximum value (UINT16_MAX).
When comparing seqnos, this has to be taken into account. Therefore,
plain number comparisons do not work.

7 months agoBFD: Fix session reconfiguration locking order
Maria Matejka [Sat, 21 Dec 2024 18:02:22 +0000 (19:02 +0100)] 
BFD: Fix session reconfiguration locking order

The sessions have to be updated asynchronously to avoid
cross-locking between protocols.

Testsuite: cf-ibgp-bfd-switch, cf-ibgp-multi-bfd-auth
Fixes: #139
Thanks to Daniel Suchy <danny@danysek.cz> for reporting:
https://trubka.network.cz/pipermail/bird-users/2024-December/017984.html

7 months agoBGP: fix locking order error on dynamic protocol spawn
Maria Matejka [Fri, 20 Dec 2024 10:28:00 +0000 (11:28 +0100)] 
BGP: fix locking order error on dynamic protocol spawn

We missed that the protocol spawner violates the prescribed
locking order. When the rtable level is locked, no new protocol can be
started, thus we need to:

* create the protocol from a clean mainloop context
* in protocol start hook, take the socket

Testsuite: cf-bgp-autopeer
Fixes: #136
Thanks to Job Snijders <job@fastly.com> for reporting:
https://trubka.network.cz/pipermail/bird-users/2024-December/017980.html

7 months agoKernel: when channel traces, we have to trace the final result
Maria Matejka [Thu, 19 Dec 2024 11:28:27 +0000 (12:28 +0100)] 
Kernel: when channel traces, we have to trace the final result

Otherwise it looks like we are sending too much traffic to netlink
every other while, which is not true. Now we can disambiguate between
in-kernel updates and ignored routes.

7 months agoTable: not feeding twice, once is enough
Maria Matejka [Thu, 19 Dec 2024 10:54:05 +0000 (11:54 +0100)] 
Table: not feeding twice, once is enough

If there is no feed pending, the requested one should be
activated immediately, otherwise it is activated only after
the full run, effectively running first a full feed and
then the requested one.

7 months agoKernel: Fix crash for merge paths on if no route is in BIRD
Maria Matejka [Thu, 19 Dec 2024 10:00:15 +0000 (11:00 +0100)] 
Kernel: Fix crash for merge paths on if no route is in BIRD

There was a missing check for a NULL return value.
Also fixed an indenting error.

Thanks to Radu Anghel for reporting it:
https://bird.network.cz/pipermail/bird-users/2024-December/017977.html

7 months agoNEWS and version update v3.0.0
Maria Matejka [Tue, 17 Dec 2024 08:42:16 +0000 (09:42 +0100)] 
NEWS and version update

7 months agoDebian: Depend on libssh's default flavor
Jakub Ružička [Mon, 16 Dec 2024 13:23:12 +0000 (14:23 +0100)] 
Debian: Depend on libssh's default flavor

This mirrors Debian bird2 change, gcrypt flavor is deprecated.

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1074257

7 months agoBGP: Print warnings when the allocated memory is larger than given acceptable maximum.
Katerina Kubecova [Mon, 16 Dec 2024 10:37:10 +0000 (11:37 +0100)] 
BGP: Print warnings when the allocated memory is larger than given acceptable maximum.

7 months agoTable exporter journal dumping and memsize
Maria Matejka [Mon, 16 Dec 2024 09:59:59 +0000 (10:59 +0100)] 
Table exporter journal dumping and memsize

The show-memory command wasn't showing the consumed memory
properly because it ignored the journal size. Now it does.

7 months agoFix mallopt configure checks
Maria Matejka [Mon, 16 Dec 2024 08:50:20 +0000 (09:50 +0100)] 
Fix mallopt configure checks

Some systems do have malloc.h but don't have mallopt.

7 months agoTable cork compromise
Maria Matejka [Mon, 16 Dec 2024 08:34:08 +0000 (09:34 +0100)] 
Table cork compromise

The original values were way too low but what was set
later was too high and caused memory buildup upon startup.

7 months agoTable prune inhibited during reconfiguration
Maria Matejka [Sun, 15 Dec 2024 20:04:22 +0000 (21:04 +0100)] 
Table prune inhibited during reconfiguration

When many changes are done during reconfiguration, the table may
start pruning old routes before everything is settled down, slowing
down not only the reconfiguration, but also the shutdown process.

7 months agoDisable multiple malloc arenas
Maria Matejka [Sat, 14 Dec 2024 22:21:07 +0000 (23:21 +0100)] 
Disable multiple malloc arenas

In our usecase, these are impossibly greedy because we often
free memory in a different thread than where we allocate, forcing
the default allocator to scatter the used memory all over the place.

7 months agoMore accurate allocator internal log
Maria Matejka [Sat, 14 Dec 2024 20:33:47 +0000 (21:33 +0100)] 
More accurate allocator internal log

7 months agoDrop forgotten debug logs
Maria Matejka [Sat, 14 Dec 2024 18:49:56 +0000 (19:49 +0100)] 
Drop forgotten debug logs

7 months agoROA: Extended and more thorough test
Katerina Kubecova [Fri, 13 Dec 2024 15:16:59 +0000 (16:16 +0100)] 
ROA: Extended and more thorough test

There was a suspicion that maybe the BIRD 3 version of ROA gets the
digesting wrong. This test covers the nastiest cornercases we could
think about, so now we can expect it to be right.

7 months agoMerge commit '1dbee120' into thread-next
Maria Matejka [Fri, 13 Dec 2024 19:56:30 +0000 (20:56 +0100)] 
Merge commit '1dbee120' into thread-next

7 months agoMerge tag 'v2.16' into thread-next
Maria Matejka [Fri, 13 Dec 2024 19:56:08 +0000 (20:56 +0100)] 
Merge tag 'v2.16' into thread-next

v2.16

7 months agoAllow allocating cold pages inside RCU critical section
Katerina Kubecova [Fri, 13 Dec 2024 11:35:02 +0000 (12:35 +0100)] 
Allow allocating cold pages inside RCU critical section

We have quite large critical sections and we need to allocate inside
them. This is something to revise properly later on, yet for now,
instead of slowly but surely growing the virtual memory address space,
it's better to optimize the cold page cache pickup and count situations
where this happened inside the critical section.

7 months agoFixed a subtle memory leak in protocol restart routine
Maria Matejka [Fri, 13 Dec 2024 18:10:55 +0000 (19:10 +0100)] 
Fixed a subtle memory leak in protocol restart routine

7 months agoMerge commit '707cad61' into thread-next
Maria Matejka [Fri, 13 Dec 2024 17:40:11 +0000 (18:40 +0100)] 
Merge commit '707cad61' into thread-next

7 months agoMerge commit 'ef456118' into thread-next
Maria Matejka [Fri, 13 Dec 2024 15:01:19 +0000 (16:01 +0100)] 
Merge commit 'ef456118' into thread-next

7 months agoMerge commit 'd85fa48e' into thread-next
Maria Matejka [Fri, 13 Dec 2024 14:23:01 +0000 (15:23 +0100)] 
Merge commit 'd85fa48e' into thread-next

The resource dumping routines needed to be updated in v3 to use the new
API introduced in v2.

Conflicts:
filter/f-util.c
filter/filter.c
lib/birdlib.h
lib/event.c
lib/mempool.c
lib/resource.c
lib/resource.h
lib/slab.c
lib/timer.c
nest/config.Y
nest/iface.c
nest/iface.h
nest/locks.c
nest/neighbor.c
nest/proto.c
nest/route.h
nest/rt-attr.c
nest/rt-table.c
proto/bfd/bfd.c
proto/bmp/bmp.c
sysdep/unix/io.c
sysdep/unix/krt.c
sysdep/unix/main.c
sysdep/unix/unix.h

7 months agoMerge remote-tracking branch 'origin/apkg-v3' into thread-next
Maria Matejka [Thu, 12 Dec 2024 20:07:53 +0000 (21:07 +0100)] 
Merge remote-tracking branch 'origin/apkg-v3' into thread-next

7 months agoEAttr normalization rewritten to use bucket sort
Katerina Kubecova [Wed, 20 Nov 2024 15:53:13 +0000 (16:53 +0100)] 
EAttr normalization rewritten to use bucket sort

The EAttr ID space is dense so we can just walk once, sweep the whole
input and go home.

There is a little bit of memory inefficiency in allocating always the
largest possible block, yet it isn't too bad.

There are also unit tests for this.

7 months agoCLI: show threads all crash fixed
Maria Matejka [Thu, 12 Dec 2024 14:00:26 +0000 (15:00 +0100)] 
CLI: show threads all crash fixed

When socket dropped before finished, it failed to cleanup.

7 months agoFix alignment requirements to include atomic u64.
Maria Matejka [Wed, 11 Dec 2024 16:51:46 +0000 (17:51 +0100)] 
Fix alignment requirements to include atomic u64.

Not having this led to bus errors on unaligned atomic u64 access
on architectures with 4B pointers.

7 months agoProto show: show creation and last autorestart time
Maria Matejka [Wed, 11 Dec 2024 09:05:05 +0000 (10:05 +0100)] 
Proto show: show creation and last autorestart time

7 months agoMerge commit '4dd5b3d9' into thread-next
Maria Matejka [Tue, 10 Dec 2024 22:57:59 +0000 (23:57 +0100)] 
Merge commit '4dd5b3d9' into thread-next

7 months agoMerge commit '145830bd' into thread-next
Maria Matejka [Tue, 10 Dec 2024 22:55:42 +0000 (23:55 +0100)] 
Merge commit '145830bd' into thread-next

7 months agoMerge commit '946386f2' into thread-next
Maria Matejka [Tue, 10 Dec 2024 22:55:05 +0000 (23:55 +0100)] 
Merge commit '946386f2' into thread-next

7 months agoMerge commit '7ee27418' into thread-next
Maria Matejka [Tue, 10 Dec 2024 22:50:13 +0000 (23:50 +0100)] 
Merge commit '7ee27418' into thread-next

7 months agoBMP: Fixing corner cases
Maria Matejka [Tue, 10 Dec 2024 21:31:53 +0000 (22:31 +0100)] 
BMP: Fixing corner cases

Protocol state propagation collision, shutdown collision.

7 months agoBMP: Never touching the BGP directly
Maria Matejka [Mon, 9 Dec 2024 10:21:01 +0000 (11:21 +0100)] 
BMP: Never touching the BGP directly

Dropped hopefully last remnants of BMP directly accessing BGP structures.

7 months agoNest: proto/channel state table naming convention cleanup
Maria Matejka [Mon, 9 Dec 2024 14:34:11 +0000 (15:34 +0100)] 
Nest: proto/channel state table naming convention cleanup

7 months agoLockfree journal: Cleanup hook runs only when needed.
Katerina Kubecova [Fri, 6 Dec 2024 12:16:18 +0000 (13:16 +0100)] 
Lockfree journal: Cleanup hook runs only when needed.

The function lfjour_cleanup_hook() was scheduled each time any of the
journal recipients reached end of a block of journal items or read all
of journal items. Because lfjour_cleanup_hook() can clean only journal
items every recipient has processed, it was often called uselessly.

This commit restricts most of the unuseful scheduling. Only some
recipients are given a token alowing them to try to schedule the
cleanup hook. When a recipient wants to schedule the cleanup hook, it
checks whether it has a token. If yes, it decrements number of tokens
the journal has given (issued_tokens) and discards its own token. If
issued_tokens reaches zero, the recipient is allowed to schedule the
cleanup hook.

There is a maximum number of tokens a journal can give to its recipients
(max_tokens). A new recipient is given a token in its init, unless the
maximum number of tokens is reached. The rest of tokens is given to
customers in lfjour_cleanup_hook().

In the cleanup hook, the issued_tokens number is increased in order to
avoid calling the hook before it finishes. Then, tokens are given to the
slowest recipients (but never to more than max_token recipients). Before
leaving lfjour_cleanup_hook(), the issued_tokens number is decreased back.
If no other tokens are given, we have to make sure the
lfjour_cleanup_hook will be called again. If every item in journal was
read by every recipient, tokens are given to random recipients. If all
recipients with tokens managed to finish until now, we give the token to
the first unfinished customer we find, or we just call the hook again.

7 months agoNest: fixed a race-condition between import and export
Maria Matejka [Tue, 10 Dec 2024 09:52:52 +0000 (10:52 +0100)] 
Nest: fixed a race-condition between import and export

There was a leaking stack pointer to the global memory.
Fixed by making that temporary structure thread local static.

7 months agoFix typos found by lintian
Jakub Ružička [Fri, 6 Dec 2024 14:51:26 +0000 (15:51 +0100)] 
Fix typos found by lintian

I: bird3: spelling-error-in-binary "an other" "another" [usr/sbin/bird]
I: bird3: spelling-error-in-binary Reseting Resetting [usr/sbin/bird]
I: bird3: spelling-error-in-binary authenication authentication [usr/sbin/bird]

I was unable to fix the following:

I: bird3: spelling-error-in-binary upto up to [usr/sbin/bird]

7 months agoDebian: Remove unneeded Pre-Depends: init-system-helpers
Jakub Ružička [Thu, 5 Dec 2024 12:27:56 +0000 (13:27 +0100)] 
Debian: Remove unneeded Pre-Depends: init-system-helpers

Lintian proclaims this is an essential package.

7 months agoDebian: Add upstream lintian-overrides
Jakub Ružička [Fri, 6 Dec 2024 14:45:44 +0000 (15:45 +0100)] 
Debian: Add upstream lintian-overrides

7 months agoDebian: Add BuildDepends: ca-certificates
Jakub Ružička [Wed, 4 Dec 2024 18:24:38 +0000 (19:24 +0100)] 
Debian: Add BuildDepends: ca-certificates

This should reportedly fix test issues on ARM.

7 months agoDebian: Add Rules-Requires-Root: no to d/control
Jakub Ružička [Tue, 10 Oct 2023 11:04:08 +0000 (13:04 +0200)] 
Debian: Add Rules-Requires-Root: no to d/control

7 months agoDebian: Rename package to bird3
Jakub Ružička [Thu, 5 Dec 2024 12:20:19 +0000 (13:20 +0100)] 
Debian: Rename package to bird3

Also reformat using

    wrap-and-sort -bast

7 months agoBMP: Dropped remnants of unused channels
Maria Matejka [Thu, 5 Dec 2024 14:07:56 +0000 (15:07 +0100)] 
BMP: Dropped remnants of unused channels

7 months agoBMP: refactored lists and table locks to tlists
Maria Matejka [Thu, 5 Dec 2024 13:59:54 +0000 (14:59 +0100)] 
BMP: refactored lists and table locks to tlists

7 months agoBMP: protocol state ingestion refactoring
Maria Matejka [Thu, 5 Dec 2024 11:12:34 +0000 (12:12 +0100)] 
BMP: protocol state ingestion refactoring

8 months agoBMP: Tamed a TX buffer warning
Maria Matejka [Wed, 4 Dec 2024 09:16:42 +0000 (10:16 +0100)] 
BMP: Tamed a TX buffer warning

8 months agoMerge commit 'a47704a53db4f088e52e43f8b24785e5777ce147' into thread-next
Ondrej Zajicek [Tue, 3 Dec 2024 18:40:21 +0000 (19:40 +0100)] 
Merge commit 'a47704a53db4f088e52e43f8b24785e5777ce147' into thread-next

8 months agoMerge commit '73e7d3f5cede2e72eb9e77d61424a8c443672c09' into thread-next
Ondrej Zajicek [Tue, 3 Dec 2024 18:00:05 +0000 (19:00 +0100)] 
Merge commit '73e7d3f5cede2e72eb9e77d61424a8c443672c09' into thread-next

8 months agoMerge commit '5205ff97448cc34cf7334e90172c28eb48f227f2' into thread-next
Ondrej Zajicek [Tue, 3 Dec 2024 17:48:20 +0000 (18:48 +0100)] 
Merge commit '5205ff97448cc34cf7334e90172c28eb48f227f2' into thread-next

8 months agoMerge commit 'e6a100b31a7637ee739338e4b933367707ec931f' into thread-next
Ondrej Zajicek [Tue, 3 Dec 2024 17:22:14 +0000 (18:22 +0100)] 
Merge commit 'e6a100b31a7637ee739338e4b933367707ec931f' into thread-next

8 months agoCI: Fix filter tests for ASPA
Ondrej Zajicek [Tue, 3 Dec 2024 16:23:09 +0000 (17:23 +0100)] 
CI: Fix filter tests for ASPA

(broken by previous change)

8 months agoStatic: Fix ASPA static route argument
Ondrej Zajicek [Tue, 3 Dec 2024 16:05:23 +0000 (17:05 +0100)] 
Static: Fix ASPA static route argument

It seems that it should be 'providers' instead of 'provider'.

It matches keyword declaration and documentation. Mismatch beween keyword
declaration also breaks static-only builds.

8 months agoMerge commit '460321cfe979459e3b78ba87694f29865d321612' into thread-next
Ondrej Zajicek [Tue, 3 Dec 2024 14:45:25 +0000 (15:45 +0100)] 
Merge commit '460321cfe979459e3b78ba87694f29865d321612' into thread-next

8 months agoNEWS and version update v2.16
Ondrej Zajicek [Tue, 3 Dec 2024 03:59:56 +0000 (04:59 +0100)] 
NEWS and version update

8 months agoDocumentation: Updating roadmap as of end of 2024
Maria Matejka [Tue, 3 Dec 2024 11:29:30 +0000 (12:29 +0100)] 
Documentation: Updating roadmap as of end of 2024

8 months agoCLI: Dumping forces new file creation instead of truncating.
Maria Matejka [Tue, 3 Dec 2024 09:57:10 +0000 (10:57 +0100)] 
CLI: Dumping forces new file creation instead of truncating.

8 months agoCLI: show memory also displays cold pages
Maria Matejka [Fri, 15 Nov 2024 07:20:17 +0000 (08:20 +0100)] 
CLI: show memory also displays cold pages

Minor changes by committer.

8 months agoRPKI: Fix several errors in handling of Error PDU
Ondrej Zajicek [Tue, 3 Dec 2024 00:19:44 +0000 (01:19 +0100)] 
RPKI: Fix several errors in handling of Error PDU

Fix several errors including:
 - Unaligned memory access to 'Length of Error Text' field
 - No validation of 'Length of Encapsulated PDU' field
 - No validation of 'Error Code' field
 - No validation of characters in diagnostic message