0
0
mirror of https://gitlab.nic.cz/labs/bird.git synced 2024-11-15 07:38:43 +00:00
Commit Graph

5209 Commits

Author SHA1 Message Date
Maria Matejka
8d5fcfc6e8 Lib: added a generic CBOR parser framework 2024-10-05 15:54:15 +02:00
Maria Matejka
850bbf02c1 Lib: added tmp_v?sprintf and tmp_strdup allocating from tmp_linpool 2024-10-05 15:54:15 +02:00
Maria Matejka
169677deeb Birdloop pipe is set O_CLOEXEC.
If we decide to exec something, we shouldn't pass along our intenal fds.
2024-10-05 15:54:15 +02:00
Maria Matejka
0eb1548cc4 Debug: Do not compile allocator debug journals in unless requested.
These journals can become very memory-heavy when it comes to
constrained environments where every 100k of RAM matters.
2024-10-05 15:54:15 +02:00
Maria Matejka
5400add300 Minimalist mainloop implementation 2024-10-05 15:54:15 +02:00
Maria Matejka
723569bc5d Properly handling situations when birdloops are created before spawning threads 2024-10-05 15:54:15 +02:00
Maria Matejka
0fc0e4618f Allocator parameters can be configured now. 2024-10-05 15:54:15 +02:00
Maria Matejka
d27c2b6ec5 Socket: pausing and restoring RX is a little bit more checked 2024-10-01 14:26:31 +02:00
Maria Matejka
d8df9c5d62 Socket: error hook is called from a function 2024-10-01 14:26:25 +02:00
Katerina Kubecova
9f27bfc6fc Porting the CBOR encoder from the YANG branch
Minor cleanups by commiter.

(source commit 43ff10204b but expected
to be rebased later, don't worry if you fail to find it)
2024-10-01 14:26:00 +02:00
Maria Matejka
253ce95bc9 Added mb_strdup() to complement other similar functions 2024-10-01 14:26:00 +02:00
Maria Matejka
65086fda3d Moved sk_open_unix() to common lib 2024-10-01 14:26:00 +02:00
Maria Matejka
93cbc49289 lib/socket.h: added missing include 2024-10-01 14:26:00 +02:00
Maria Matejka
87a47559bb lib/obstacle.h: added missing include 2024-10-01 14:26:00 +02:00
Maria Matejka
cda025a1fa Splitting out BIRD static library for linking to other tools 2024-10-01 14:26:00 +02:00
Maria Matejka
971d651268 Thread config has an explicit structure 2024-10-01 14:26:00 +02:00
Maria Matejka
6f67e47ad5 Enabled LTO for LLVM and making use of jobserver for LTO in GCC 2024-10-01 14:26:00 +02:00
Maria Matejka
f534543733 Compiler vendor detection for autotools 2024-10-01 14:26:00 +02:00
Maria Matejka
edd9ec599c Kernel preferred interface address updater decoupled from the lib 2024-10-01 14:26:00 +02:00
Maria Matejka
60bd75c174 Moved hostname resolver to logger 2024-10-01 14:25:58 +02:00
Maria Matejka
bd75a5253a Displaced show threads command to its own file 2024-10-01 14:24:55 +02:00
Maria Matejka
f332413cfb Interface CLI commands moved to a separate file.
This is a preparation both for CLI splitup and for lib splitup.
2024-10-01 14:24:55 +02:00
Maria Matejka
8e7fef42bb Disabling the old IO event logger as it doesn't run from worker loops anyway 2024-10-01 14:24:55 +02:00
Maria Matejka
03a87c4f7c Shutdown marker displaced to runtime 2024-10-01 14:24:55 +02:00
Maria Matejka
386134d8e1 Splitting out clock and tracked files from sysdep/unix/io.c 2024-10-01 14:24:55 +02:00
Maria Matejka
d55a15a569 Global runtime splitout to BIRD specific and lib things 2024-10-01 14:24:55 +02:00
Maria Matejka
9f19dc0b3c Moved stored_sock to io-loop.c (old hack for mainloop) 2024-10-01 14:24:55 +02:00
Maria Matejka
3e21e1f9a0 Calling cf_warn from log_switch makes no sense 2024-10-01 14:24:55 +02:00
Maria Matejka
e70207b281 Displaced bird_name to log.c where it rightfully belongs 2024-10-01 14:24:51 +02:00
Maria Matejka
bb183c9d0c Sysdep: moved socket code into a separate file 2024-08-27 15:06:54 +02:00
Maria Matejka
6485a74a5c Moved flowspec configuration checks to the config file
Functions flow_check_cf_bmk_values, flow_check_cf_value_length,
flow4_validate_cf and flow6_validate_cf are now not built with lib but
with conf to enable for better semantic separation.
2024-08-27 15:06:54 +02:00
Maria Matejka
e787a9210f NEWS and version update 2024-07-01 15:34:06 +02:00
Maria Matejka
5ea6423cb9 Fixed secondary route export 2024-06-28 22:03:45 +02:00
Maria Matejka
d53582c9a1 show threads: displaying the same thread id's as in log 2024-06-28 22:03:45 +02:00
Maria Matejka
c2480ff533 Export: Throw a warning instead of crashing on export_accepted_map inconsistency 2024-06-28 22:03:45 +02:00
Maria Matejka
edffd82057 Config undo queuing bug fixed 2024-06-28 22:03:45 +02:00
Maria Matejka
45fb9742f0 BGP runs TX as a deferred routine
This should help flushing the tx buffers as soon as possible.
2024-06-28 22:03:45 +02:00
Maria Matejka
6eea722d3f Forbid locking altogether when RCU reader is active 2024-06-28 22:03:45 +02:00
Maria Matejka
1e77e6e1b2 Flush deferred calls directly after the loop finished its one run 2024-06-28 22:03:45 +02:00
Maria Matejka
865bab6237 IO: Allow to take new loops if the thread is hot, but only one at time 2024-06-28 22:03:45 +02:00
Maria Matejka
18d069d663 Even on shutdown we should try to pass the freed memory to others 2024-06-27 08:22:15 +02:00
Maria Matejka
af73cc4215 Allocator now reports cold pages 2024-06-26 20:45:54 +02:00
Maria Matejka
aa11e82174 Filter unit test uncertainty hack 2024-06-26 18:30:17 +02:00
Maria Matejka
be2ba84e50 Tame improper xmalloc warning 2024-06-26 17:21:26 +02:00
Maria Matejka
b797444e94 Merge commit 'b95dc8f29f18eb177f91fdc4bf0716fac9b15366' into mq-config-ref
Also converted all _Bool's to bool.
2024-06-26 17:19:24 +02:00
Maria Matejka
16e53f3f30 channel roa reload debug message 2024-06-26 15:13:12 +02:00
Maria Matejka
2a6fe617b1 IO: allow for faster loop dropping 2024-06-26 11:30:48 +02:00
Maria Matejka
a4a7e09478 Revert "BGP: Export uses common attribute cache"
This reverts commit d01a7c2bda.

It seems that the performance penalty in global ea cache is actually
very high so returning back to local attribute caches in every BGP.
2024-06-26 11:30:48 +02:00
Maria Matejka
a9534186f1 Fixed fast subsequent reconfigurations bug 2024-06-26 11:30:41 +02:00
Maria Matejka
7d455d64ca Remove spinlock debug structures in production build 2024-06-26 11:30:41 +02:00