]> git.puffer.fish Git - mirror/frr.git/commit
bgpd: use double-linked list instead of single-linked list in dampening 9217/head
authorIgor Ryzhov <iryzhov@nfware.com>
Thu, 29 Jul 2021 12:31:34 +0000 (15:31 +0300)
committerIgor Ryzhov <iryzhov@nfware.com>
Thu, 29 Jul 2021 21:59:19 +0000 (00:59 +0300)
commitdb0e636dc45f9bd2c76528a8368332c56f2c8f1e
tree4912acfd026b9b5ba7be08a30b9d2a00ebf3f91b
parent4538f89552a01e6ab3504f8a59ef156b9a14ce1c
bgpd: use double-linked list instead of single-linked list in dampening

This code always used double-linked list before this rework in 8.0 that
introduced all these crashes and memory leaks. Using single-linked list
is actually a performance regression, because there are frequent removes
here and single-linked list obviously handles removes much worse.

Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
bgpd/bgp_damp.c
bgpd/bgp_damp.h