]> git.ipfire.org Git - thirdparty/bird.git/commit
BGP: Export uses common attribute cache
authorMaria Matejka <mq@ucw.cz>
Wed, 29 May 2024 06:18:31 +0000 (08:18 +0200)
committerMaria Matejka <mq@ucw.cz>
Mon, 10 Mar 2025 10:51:28 +0000 (11:51 +0100)
commit4f8c3435eeb3542793a6bc1c02f1a68a8ce116bb
tree0bc086ba03bb3d0886d694b94c11891886152153
parent71c666806381390593f7df7f1144bc52ae58b4fe
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.)
nest/rt-attr.c
proto/bgp/attrs.c
proto/bgp/bgp.h
proto/bgp/packets.c